Update the configurations of a container
Update a container's configurations, including memory, cpu and diskquota etc. You can update a container when it is running.
pouch update [OPTIONS] CONTAINER
$ pouch run -d -m 20m --name test-update registry.hub.docker.com/library/busybox:latest
8649804cb63ff9713a2734d99728b9d6d5d1e4d2fbafb2b4dbdf79c6bbaef812
$ cat /sys/fs/cgroup/memory/8649804cb63ff9713a2734d99728b9d6d5d1e4d2fbafb2b4dbdf79c6bbaef812/memory.limit_in_bytes
20971520
$ pouch update -m 30m test-update
$ cat /sys/fs/cgroup/memory/8649804cb63ff9713a2734d99728b9d6d5d1e4d2fbafb2b4dbdf79c6bbaef812/memory.limit_in_bytes
31457280
--annotation strings Update annotation for runtime spec
--blkio-weight uint16 Block IO (relative weight), between 10 and 1000, or 0 to disable
--cpu-period int Limit CPU CFS (Completely Fair Scheduler) period, range is in [1000(1ms),1000000(1s)]
--cpu-quota int Limit CPU CFS (Completely Fair Scheduler) quota
--cpu-shares int CPU shares (relative weight)
--cpuset-cpus string CPUs in cpuset which to allow execution (0-3, 0, 1)
--cpuset-mems string MEMs in cpuset which to allow execution (0-3, 0, 1)
--device-read-bps strings Update read rate (bytes per second) from a device (default [])
--device-read-iops strings Update read rate (io per second) from a device (default [])
--device-write-bps strings Update write rate (bytes per second) from a device (default [])
--device-write-iops strings Update write rate (io per second) from a device (default [])
--disk-quota strings Update disk quota for container(/=10g)
-e, --env strings Update environment variables for container('--env A=' means updating env A to be empty and '--env A' means removing env A)
-h, --help help for update
-l, --label strings Update labels for container
-m, --memory string Container memory limit
--memory-swap string Container swap limit
--restart string Restart policy to apply when container exits
-D, --debug Switch client log level to DEBUG mode
-H, --host string Specify connecting address of Pouch CLI (default "unix:///var/run/pouchd.sock")
--tlscacert string Specify CA file of TLS
--tlscert string Specify cert file of TLS
--tlskey string Specify key file of TLS
--tlsverify Use TLS and verify remote
- pouch - An efficient container engine