The Usage: Docker RUN [the OPTIONS] the IMAGE [the COMMAND] [ARG ...] -d, = --detach to false to specify the container running in the foreground or background, defaults to false -i, = --interactive to false open STDIN, for controlling interaction station -t, = --tty to false dispensing tty devices, which may support the terminal log, defaults to false -u, --user = "" user specified container -a, --attach = [] login container (must be in docker run - the container start d) - W , --workdir = "" working directory specified container -C, --cpu-shares = 0 set CPU weight container, using the CPU sharing scenario -e, - the env = [] specifying environment variables, the container can be used in the environment variable -m, --memory = "" Memory limit specified container -P, = All---publish to false specified container port exposed -p, --publish = [] containers exposed specified port -H, - hostname = "" host name specified container -v , = --volume [] to mount the storage volume container, the container is mounted to a directory --volumes-from = [] to the container volume mounted on other containers, the container mounted to a directory - cap-add = [] add permissions, the permissions list see: HTTP: // linux.die.net/man/7/capabilities --cap-drop = [] delete permissions, see the list of permissions: HTTP: // Linux .die.net / man /. 7 / Capabilities --cidfile = "" after running the container, the container file is written in the designated PID values, a typical monitoring system usage --cpuset = "" CPU which can use the container is provided, this parameter can be used exclusively container CPU --device = [] was added to the vessel a host device, the device corresponding to the through - DNS = [] dns server specified container --dns-search = [] dns search domain specified container, the container is written to / etc / Resolv.conf document --entrypoint = "" cover image entry point - the env - file = [] file specifying environment variables, file format, one per line environment variable --expose = [] containers exposed specified port, i.e. port modifying mirror exposed --link = [] specifies association between containers, containers other IP, env information --lxc-conf = [] Specifies the container configuration file, only in designated --exec-driver = use LXC --name = "" Specifies the name of the container, the container can subsequently be managed by name, the name of links required characteristics - Net = " Bridge " container network settings: Bridge using docker daemon designated bridge Host // container using the host network Container: NAME_or_ID> // Internet use other containers, shared network resources such as IP and PORT none vessel uses its own network (similar to = - net Bridge), but does not configure --privileged = false to specify whether the vessel has all the privileges of a container, the container privilege the Capabilities --restart = " nO " to restart after the specified container stop strategy: nO: quit without restarting the container ON -failure: a failure to exit the container (returns a non-zero value) restart always: always restart the container exit - RM = false designated stops automatically deleted container after container (not supported docker run - container d start) --sig-Proxy = to true is provided by the proxy receive and process signals, but SIGCHLD, SIGSTOP and SIGKILL agent can not be
docker run command parameter
Guess you like
Origin www.cnblogs.com/liujunjun/p/12110106.html
Recommended
Ranking