Card 06/ 06

RecapDifficulty: Intermediate1 min

What You Learned

  • docker run pulls, creates and starts, and only the pull touches the network.
  • -p is host first, container second. The container's number is the one you cannot choose.
  • docker ps shows what is running; -a shows what exited.
  • docker logs holds what the program said on its way out.
  • docker exec -it gets you inside a container that is already running; docker run would start a different one.