CmdID

CmdID / Commands

docker-container-run

Run a command in a new Docker container. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Run command in a new container from a tagged image

docker [run|container run] image:tag commandIdentify

Run command in a new container in background and display its ID

docker [run|container run] --detach image commandIdentify

Run command in a one-off container in interactive mode and pseudo-TTY

docker [run|container run] --rm --interactive --tty image commandIdentify

Run command in a new container with passed environment variables

docker [run|container run] --env 'variable=value' --env variable image commandIdentify

Run command in a new container with bind mounted volumes

docker [run|container run] --volume /path/to/host_directory:/path/to/container_directory image commandIdentify

Run command in a new container with published ports

docker [run|container run] --publish host_port:container_port image commandIdentify

Run command in a new container overwriting the entrypoint of the image

docker [run|container run] --entrypoint command imageIdentify

Run command in a new container connecting it to a network

docker [run|container run] --network network imageIdentify