Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Last active January 8, 2017 00:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pcolazurdo/670f7429253371ba5dd1 to your computer and use it in GitHub Desktop.
Save pcolazurdo/670f7429253371ba5dd1 to your computer and use it in GitHub Desktop.
Running a SCIPY docker box in Windows
To run docker on windows to run a new image, let's say mingfang/docker-ipython:
install boot2docker from docker site
Once installed you have to run a cmd as administrator and then:
: boot2docker start
: boot2docker ssh
Once there you can pull a repo, like:
git clone https://github.com/mingfang/docker-ipython.git
cd docker-ipython
docker build -t ipython . # to build the image, this will take a while
Once done you can start the container by running:
docker run -v `pwd`:/ipython -p 49888:8888 -d -t ipython /usr/sbin/runsvdir-start&
This will start a new container from the recently build image and will run the runsvdir-start command inside it, which will start ssh and apache servers.
Once done, you can connect to the iPython Notebook by opening a browser to the ip returned by:
boot2docker ip (from the Windows Command Line)
i.e.: http://192.168.59.103:49888 (49888 is the redirected port 8888 from the container to the boot2docker box)
AND LAST BUT NOT LEAST, DON'T FORGET TO RUN boot2docker save (in windows cli) before stopping the box if you want to save the changes
Hope it helps!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment