Docker命令-update

命令

docker update

描述

Update configuration of one or more containers
更新容器的配置

用法

1
docker update [OPTIONS] CONTAINER [CONTAINER...]

选项

1
2
3
4
Options:
--cpus Number of CPUs
--memory , -m Memory limit
--restart Restart policy to apply when a container exits

注意

示例

1
2
3
$ docker run -dit --name test -m 300M ubuntu bash
$ docker update -m 500M test
$ docker update --restart=on-failure:3 abebf7571666 hopeful_morse