Container Commands

  • docker pull: Download an image
  • docker run: Run a command in a new container
    • -p expose/forward network ports
    • -it (technically two options) that let you run an interactive shell in a container
    • --rm remove the container after it runs
  • docker exec: Run a command in an already-running container
  • docker ps: List the running containers
  • docker container stop: Stop a running container

13 / 24