Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 414 Bytes

containers.md

File metadata and controls

9 lines (8 loc) · 414 Bytes

Containers

docker run -d

  • docker logs : see logs for a container
  • docker run -d -p : : if you go to localhost port 80, you can see the app
  • docker start: used to start stopped containers whereas 'docker run' is to run new containers
  • docker rm: removing containers, -f flag to force remove
  • docker container prune: removes all containers