更新容器的配置.
使用方法
docker update [OPTIONS] CONTAINER [CONTAINER...]
参数 | 描述 |
---|---|
–blkio-weight | Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0) |
–cpu-period | Limit CPU CFS (Completely Fair Scheduler) period |
–cpu-quota | Limit CPU CFS (Completely Fair Scheduler) quota |
–cpu-rt-period | Limit the CPU real-time period in microseconds |
–cpu-rt-runtime | ALimit the CPU real-time runtime in microseconds |
–cpu-shares , -c | CPU shares (relative weight) |
–cpus | Number of CPUs |
–cpuset-cpus | CPUs in which to allow execution (0-3, 0,1) |
–cpuset-mems | MEMs in which to allow execution (0-3, 0,1) |
–kernel-memory | Kernel memory limit |
–memory , -m | Memory limit |
–memory-reservation | Memory soft limit |
–memory-swap | Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap |
–restart | Restart policy to apply when a container exits |
docker update --restart=on-failure:3 abebf7571666 hopeful_morse
参考文献:
https://docs.docker.com/engine/reference/commandline/update/