Skip to content

Instantly share code, notes, and snippets.

@kitsuyui
Created October 19, 2016 15:19
Show Gist options
  • Save kitsuyui/257987441bf829f810fa38035ec23c33 to your computer and use it in GitHub Desktop.
Save kitsuyui/257987441bf829f810fa38035ec23c33 to your computer and use it in GitHub Desktop.
備忘録: docker run で `--restart=always` を付け忘れたコンテナに後から `--restart=always` をつけるには ref: http://qiita.com/kitsuyui/items/c6b5ff51e4902a91cc1d
$ docker update --restart=always コンテナのID
Usage: docker update [OPTIONS] CONTAINER [CONTAINER...]
Update configuration of one or more containers
Options:
--blkio-weight value Block IO (relative weight), between 10 and 1000
--cpu-period int Limit CPU CFS (Completely Fair Scheduler) period
--cpu-quota int Limit CPU CFS (Completely Fair Scheduler) quota
-c, --cpu-shares int CPU shares (relative weight)
--cpuset-cpus string CPUs in which to allow execution (0-3, 0,1)
--cpuset-mems string MEMs in which to allow execution (0-3, 0,1)
--help Print usage
--kernel-memory string Kernel memory limit
-m, --memory string Memory limit
--memory-reservation string Memory soft limit
--memory-swap string Swap limit equal to memory plus swap: '-1' to enable unlimited swap
--restart string Restart policy to apply when a container exits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment