Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DOCKER(1) JUNE 2014 DOCKER(1)
NAME
docker-run - Run a command in a new container
SYNOPSIS
docker run [-a|--attach[=[]]] [--add-host[=[]]]
[--blkio-weight[=[BLKIO-WEIGHT]]] [--blkio-weight-device[=[]]]
[--cpu-shares[=0]] [--cap-add[=[]]] [--cap-drop[=[]]]
[--cgroup-parent[=CGROUP-PATH]] [--cidfile[=CIDFILE]] [--cpu-period[=0]]
[--cpu-quota[=0]] [--cpuset-cpus[=CPUSET-CPUS]] [--cpuset-mems[=CPUSET-MEMS]]
[-d|--detach] [--detach-keys[=[]]] [--device[=[]]] [--device-read-bps[=[]]]
[--device-read-iops[=[]]] [--device-write-bps[=[]]]
[--device-write-iops[=[]]] [--dns[=[]]] [--dns-opt[=[]]] [--dns-search[=[]]]
[-e|--env[=[]]] [--entrypoint[=ENTRYPOINT]] [--env-file[=[]]] [--expose[=[]]]
[--group-add[=[]]] [-h|--hostname[=HOSTNAME]] [--help] [-i|--interactive]
[--ip[=IPv4-ADDRESS]] [--ip6[=IPv6-ADDRESS]] [--ipc[=IPC]]
[--isolation[=default]] [--kernel-memory[=KERNEL-MEMORY]] [-l|--label[=[]]]
[--label-file[=[]]] [--link[=[]]] [--link-local-ip[=[]]] [--log-driver[=[]]]
[--log-opt[=[]]] [-m|--memory[=MEMORY]] [--mac-address[=MAC-ADDRESS]]
[--memory-reservation[=MEMORY-RESERVATION]] [--memory-swap[=LIMIT]]
[--memory-swappiness[=MEMORY-SWAPPINESS]] [--name[=NAME]]
[--network-alias[=[]]] [--network[="bridge"]] [--oom-kill-disable]
[--oom-score-adj[=0]] [-P|--publish-all] [-p|--publish[=[]]] [--pid[=[PID]]]
[--userns[=[]]] [--pids-limit[=PIDS_LIMIT]] [--privileged] [--read-only]
[--restart[=RESTART]] [--rm] [--security-opt[=[]]] [--storage-opt[=[]]]
[--stop-signal[=SIGNAL]] [--shm-size[=[]]] [--sig-proxy[=true]]
[--sysctl[=[]]] [-t|--tty] [--tmpfs[=[CONTAINER-DIR[:<OPTIONS>]]]
[-u|--user[=USER]] [--ulimit[=[]]] [--uts[=[]]]
[-v|--volume[=[[HOST-DIR:]CONTAINER-DIR[:OPTIONS]]]]
[--volume-driver[=DRIVER]] [--volumes-from[=[]]] [-w|--workdir[=WORKDIR]]
IMAGE [COMMAND] [ARG...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.