Created
September 12, 2020 08:05
-
-
Save yuyasugano/069622749348d7a02b3502b932dd3460 to your computer and use it in GitHub Desktop.
Anaconda build and push for DockerHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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