docker-container-run
Run a command in a new Docker container. tldr-pages
On several platforms
Several platforms
Run command in a new container from a tagged image
docker [run|container run] image:tag commandIdentifyRun command in a new container in background and display its ID
docker [run|container run] --detach image commandIdentifyRun command in a one-off container in interactive mode and pseudo-TTY
docker [run|container run] --rm --interactive --tty image commandIdentifyRun command in a new container with passed environment variables
docker [run|container run] --env 'variable=value' --env variable image commandIdentifyRun command in a new container with bind mounted volumes
docker [run|container run] --volume /path/to/host_directory:/path/to/container_directory image commandIdentifyRun command in a new container with published ports
docker [run|container run] --publish host_port:container_port image commandIdentifyRun command in a new container overwriting the entrypoint of the image
docker [run|container run] --entrypoint command imageIdentifyRun command in a new container connecting it to a network
docker [run|container run] --network network imageIdentify