Skip to content

Instantly share code, notes, and snippets.

@EmpeRoar
Last active March 4, 2018 06:32
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 EmpeRoar/464fde6ff01d0156f7df14ab5e29979d to your computer and use it in GitHub Desktop.
Save EmpeRoar/464fde6ff01d0156f7df14ab5e29979d to your computer and use it in GitHub Desktop.
DOCKER COMMANDS
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