Mount the container’s root filesystem as read only Pull image before running ( always, missing, never) Publish all exposed ports to random ports Publish a container’s port(s) to the host Give extended privileges to this container Set platform if server is multi-platform capable Tune container pids limit (set -1 for unlimited) Tune host’s OOM preferences (-1000 to 1000) Tune container memory swappiness (0 to 100)Īttach a filesystem mount to the containerĪdd network-scoped alias for the containerĭisable any container-specified HEALTHCHECK Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap Maximum IOps limit for the system drive (Windows only)Ĭontainer MAC address (e.g., 92:d0:c6:0a:29:33) Maximum IO bandwidth limit for the system drive (Windows only) Run an init inside the container that forwards signals and reaps processes Maximum time to allow one check to run (ms|s|m|h) (default 0s) Start period for the container to initialize before starting health-retries countdown (ms|s|m|h) (default 0s) Time between running the check (ms|s|m|h) (default 0s)Ĭonsecutive failures needed to report unhealthy GPU devices to add to the container (‘all’ to pass all GPUs) Overwrite the default ENTRYPOINT of the image Limit write rate (IO per second) to a device Limit write rate (bytes per second) to a device Limit read rate (IO per second) from a device Limit read rate (bytes per second) from a device Override the key sequence for detaching a containerĪdd a rule to the cgroup allowed devices list Run container in background and print container ID MEMs in which to allow execution (0-3, 0,1) Limit CPU real-time runtime in microsecondsĬPUs in which to allow execution (0-3, 0,1) Limit CPU real-time period in microseconds Limit CPU CFS (Completely Fair Scheduler) quota Limit CPU CFS (Completely Fair Scheduler) period ‘’: Use the cgroup namespace as configured by theĭefault-cgroupns-mode option on the daemon (default) ‘private’: Run the container in its own private cgroup namespace ‘host’: Run the container in the Docker host’s cgroup namespace Options Name, shorthandĪdd a custom host-to-IP mapping (host:ip)Īdd an annotation to the container (passed through to the OCI runtime)īlock IO (relative weight), between, or 0 to disable (default 0) Use docker ps -a to view a list of all containers, including those that are stopped.įor example uses of this command, refer to the examples section below. You can restart a stopped container with all its previous changes intact using docker start. The docker run command runs a command in a new container, pulling the image if needed and starting the container. Refer to the options section for an overview of available OPTIONS for this command.
0 Comments
Leave a Reply. |