Docker run reference | Docker -H
Dockerrunsprocessesinisolatedcontainers.Acontainerisaprocesswhichrunsonahost.Thehostmaybelocalorremote.Whenanoperatorexecutesdockerrun,thecontainerprocessthatrunsisisolatedinthatithasitsownfilesystem,itsownnetworking,anditsownisolatedprocesstreeseparatefromthehost.Thispagedetailshowtousethedockerruncommandtodefinethecontainer’sresourcesatruntime.GeneralformThebasicdockerruncommandtakesthisform:$dockerrun[OPTIONS]IMAGE[:TAG|@DIGEST][COMMAND][ARG...]ThedockerruncommandmustspecifyanIMAGE[1]tode...
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 formThe basic docker run command takes this form:
$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]The docker run command must specify an IMAGE[1] to derive the container from. An image developer can define image defaults related to:
detached or foreground running container identification network settings runtime constraints on CPU and memoryWith the docker run [OPTIONS] an operator can add to or override the image defaults set by a developer. And, additionally, operators c...