Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Anaconda build and push for DockerHub
# build your image
docker build --tag <youranaconda>:<tag> .
# run your image, jupyter notebook is up on the port 80
docker run --publish 80:8888 --detach --name anaconda <youranaconda>
# run your image, jupyter notebook is up on the port 80, mount your volume
docker run --volume $PWD/<directory>:/opt/notebooks --publish 80:8888 --detach --name anaconda <youranaconda>
docker exec -it anaconda /bin/bash
# tag your local image for DockerHub
docker tag <imageID> <your account ID>/<youranaconda>:<tag>
# loging and push your image
docker login
docker push <your account ID>/<youranaconda>:<tag>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment