Create a gist now

Instantly share code, notes, and snippets.

Embed
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