Summary

The Docker commands we’ve covered so far are:

  • docker [-d] [-p host:container] [-v /host/path:/container/path] run <IMAGE NAME>, which runs a Docker image
  • docker images, which displays all installed images
  • docker ps [-a], which displays all containers on the system
  • docker exec <CONTAINER ID> <COMMAND>, which lets you run a command inside a running container
  • docker stop <CONTAINER ID>, which stops a running container