What will be published?

Changes to the examples

The commands

docker container run -p 80 nginx:latest
docker container run -P nginx:latest

The manual

  • https://docs.docker.com/v17.09/engine/userguide/networking/#exposing-and-publishing-ports

The EXPOSE instruction

Links