| --cpus |
Number of CPUs |
| --cpuset-cpus |
CPUs in which to allow execution (0-3, 0,1) |
| --cap-drop |
Drop Linux capabilities |
| --user, -u |
Sets the username or UID |
| --group-add |
Add additional groups to run |
| --health-cmd |
Run to check health |
| --health-interval |
Time between running the check |
| --health-retries |
Consecutive failures needed to report unhealthy |
| --health-start-period |
Start period for the container to initialize before starting health-retries countdown |
| --health-timeout |
Maximum time to allow one check to run |
| --no-healthcheck |
Disable any container-specified HEALTHCHECK |
| --add-host |
Add a custom host-to-IP mapping (host:ip) |
| --dns |
Set custom DNS servers |
| --dns-opt |
Set DNS options |
| --dns-search |
Set custom DNS search domains |
| --domainname |
Container NIS domain name |
| --oom-score-adj |
Tune host's OOM preferences (-1000 to 1000) |
| --shm-size |
Option to set the size of /dev/shm |
| --init |
Run an init inside the container that forwards signals and reaps processes |
| --label, -l |
Set meta data on a container |
| --label-file |
Read in a line delimited file of labels |
| --pids-limit |
Tune container pids limit (set -1 for unlimited) |
| --work-dir |
Working directory inside the container |
| --ulimit |
Ulimit options |
| --read-only |
Mount the container's root filesystem as read only |
| --volumes-from |
Mount volumes from the specified container(s) |
| --stop-signal |
Signal to stop the container |
| --stop-timeout |
Timeout (in seconds) to stop a container |
| --cap-addNET_RAW |
Enable NET_RAW capabilities |
| --publish |
Publish a container's port(s) to the host |
| --entrypoint |
Overwrite the default ENTRYPOINT of the image |
| --expose |
Expose a port or a range of ports |
| --link |
Add link to another container |
| --env |
Set environment variables |
| --env-file |
Read in a file of environment variables |
| --network |
Connect a container to a network |
| --hostname |
Container host name |
| --interactive |
Keep STDIN open even if not attached |
| --tty |
Allocate a pseudo-TTY |
| --publish-all |
Publish all exposed ports to random ports |
| --volume |
Bind mount a volume |
| --mount |
Attach a filesystem mount to the container |
| --restart |
Restart policy to apply when a container exits |
| --cap-add |
Add Linux capabilities |
| --log-driver |
Logging driver for the container |
| --log-opt |
Log driver options |
| --detach |
Run container in background and print container ID |
| --memory |
Memory limit |
| --memory-reservation |
Memory soft limit |
| --cpu-shares |
CPU shares (relative weight) |
| --sysctl |
Sysctl options |