Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Basic docker commands that I'm learning
- - docker container
- - run --publish 80:80 --detch --name {custom_container_name} nginx
- - ls [list all the running containers]
- - ls -a [list all the containers installed]
- - stop {container_id} {give upto 3 characters of the container} [Stops the running container]
- - rm {container_id} [Remove the stoppped container]
- - rm -f [Remove any container; stopped or running] [Not recommended]
- - top (container_name) [displays the running process of the container]
- - inspect (conatiner_name) [details of the container config]
- - stats Shows the usage of the containers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement