1
0
mirror of https://github.com/docker/cli.git synced 2026-01-25 03:42:05 +03:00
Files
cli/components/engine/docs/sources/commandline/command/run.rst
rogaha 7040df6614 added/modifed tittle, description and keywords
changed the title prefix to sufix + Documentation
Upstream-commit: 18cb5c9314dbc9a0aa857211b124a3feb85c5274
Component: engine
2013-05-22 17:52:48 -07:00

988 B

title
Run Command
description
Run a command in a new container
keywords
run, container, docker, documentation

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.
  -c=0: CPU shares (relative weight)
  -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.
  -volumes-from="": Mount all volumes from the given container.