Skip to content

Instantly share code, notes, and snippets.

@jsgoller1
Last active January 8, 2019 23:13
Show Gist options
  • Save jsgoller1/0612ff8202bf7c7a070d85b82eb0a22e to your computer and use it in GitHub Desktop.
Save jsgoller1/0612ff8202bf7c7a070d85b82eb0a22e to your computer and use it in GitHub Desktop.
Dockerized Anaconda setup
# Create a file called "Makefile" and copy / paste the contents of this gist into it.
# Then from the same directory, run `make all`. Requires docker-ce and GNU make to be installed.
anaconda all: anaconda-rm anaconda-container anaconda-shell
# Stop and remove the running Anaconda container
anaconda-rm:
-docker stop anaconda
-docker rm anaconda
# Pull the latest version of the Anaconda container
# and run it in daemon mode with the local directory
# mounted into it at /code
anaconda-container:
docker pull continuumio/anaconda
docker run \
-dt \
-v `pwd`:/code \
--name anaconda \
continuumio/anaconda
# Open a bash shell in the running Anaconda container
anaconda-shell:
docker exec -it anaconda /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment