Docker run reference (Engine)
Docker run reference
Docker runs processes in isolated containers. A container is a process which runs on a host. The host may be local or remote. When an operator executes docker run
, the container process that runs is isolated in that it has its own file system, its own networking, and its own isolated process tree separate from the host.
This page details how to use the docker run
command to define the container’s resources at runtime.
General form
The basic docker run
command takes this form:
$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
The docker run
command must specify an IMAGE to derive the container from. An image developer can define image defaults related to:
- detached or foreground running
- container iden