1
0
mirror of https://github.com/docker/cli.git synced 2026-01-22 03:22:01 +03:00
Files
cli/components/engine/docs/sources/commandline/command/run.rst
Guillaume J. Charmes 9951e24504 Update docs for Command Run
Upstream-commit: 21b9dcd518871088086943f95bf39f068b30691f
Component: engine
2013-05-02 09:26:29 -07:00

864 B

run -- Run a command in a new container

Usage: docker run [OPTIONS] IMAGE COMMAND [ARG...]

Run a command in a new container

  -a=map[]: Attach to stdin, stdout or stderr.
  -d=false: Detached mode: leave the container running in the background
  -e=[]: Set environment variables
  -h="": Container host name
  -i=false: Keep stdin open even if not attached
  -m=0: Memory limit (in bytes)
  -p=[]: Map a network port to the container
  -t=false: Allocate a pseudo-tty
  -u="": Username or UID
  -d=[]: Set custom dns servers for the container
  -v=[]: Creates a new volumes and mount it at the specified path. A container ID can be passed instead of a path in order to mount all volumes from the given container.