Skip to content
masterclass Buddy

Docker · Directive

EXPOSE

docker run creates and starts a container from an image. Options can publish ports, replace image defaults, and configure the container at startup.

Last updated

Syntax

docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • docker create
  • docker port
  • EXPOSE
  • CMD
  • ENTRYPOINT
  • --publish
  • --publish-all
  • --entrypoint

Source: Running containers. Checked 2026-11-03.