Last active
March 4, 2018 06:32
-
-
Save EmpeRoar/464fde6ff01d0156f7df14ab5e29979d to your computer and use it in GitHub Desktop.
DOCKER COMMANDS
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
docker container run -it - start new container interactively | |
docker container exec -it - run additional command in existing container | |
docker container run -it --name proxy nginx bash | |
docker container run -it --name ubuntu ubuntu | |
docker container start -ai ubuntu | |
docker container exec -it mysql bash | |
ps aux :: list the processes | |
docker container run -it alpine bash | |
docker container run -it alpine sh | |
docker container inspect --format '{{ .NetworkSettings.IPAddress }}' webhost | |
docker container run -d --name psql -v psql:/var/lib/postgresql/data postgres:9.6.1 | |
docker container stop | |
https://www.youtube.com/watch?v=066-9yw8-7c | |
https://www.youtube.com/watch?v=4ZY_4OeyJsw | |
https://www.youtube.com/watch?v=QASAqcuuzgI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment