More on Docker Run

docker run --rm -d \
  -p 8000:8000 \
  --name palmer-plumber \
  alexkgold/plumber
  • DockerHub containers are in the form <user>/<name> (alexkgold/plumber)
    • You can tag an image with a version number user>/<name>:<version>
  • --rm to remove the container on kill (probably not for production)
  • -d run in detached mode so the terminal is free for other uses
  • -p <host>:<container> publishes a port from inside the container to outside
  • --name to assign a name of your choice
  • -v <outside/directory>:<inside/directory> to expose a directory
    • ${PWD} is your project directory