Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created September 12, 2020 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyasugano/069622749348d7a02b3502b932dd3460 to your computer and use it in GitHub Desktop.
Save yuyasugano/069622749348d7a02b3502b932dd3460 to your computer and use it in GitHub Desktop.
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