Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ## Basic docker commands that I'm learning
  2. - docker container
  3. - run --publish 80:80 --detch --name {custom_container_name} nginx
  4. - ls [list all the running containers]
  5. - ls -a [list all the containers installed]
  6. - stop {container_id} {give upto 3 characters of the container} [Stops the running container]
  7. - rm {container_id} [Remove the stoppped container]
  8. - rm -f [Remove any container; stopped or running] [Not recommended]
  9. - top (container_name) [displays the running process of the container]
  10. - inspect (conatiner_name) [details of the container config]
  11. - stats Shows the usage of the containers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement