Last active
May 15, 2017 15:04
-
-
Save philippmuench/317e952eb60d7d6ccd7b474393312fe1 to your computer and use it in GitHub Desktop.
commonly used docker commands
This file contains hidden or 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
# cleanup all docker files on your system | |
sudo docker stop $(docker ps -a -q) | |
sudo docker rm $(docker ps -a -q) | |
sudo docker rmi `docker images -a -q` | |
# build container from github | |
docker build -t eden github.com/philippmuench/eden | |
# bild container locally | |
docker build --rm=true -t eden . | |
# run container | |
docker run -p 3838:3838 -v /home/muench/Desktop/github.com/philippmuench/eden/data:/home/metaselection/data eden | |
# run interactive | |
docker run -p 3838:3838 -v /home/muench/Desktop/github.com/philippmuench/eden/data:/home/eden/data -i -t --entrypoint /bin/bash eden | |
# then you can run it directly with: ./entrypoint.sh --test | |
# push local container to docker.io | |
docker tag eden philippmuench/eden | |
docker push philippmuench/eden |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment