为什么docker容器更新不稳定?

Why docker container update is not stable?

我使用命令docker container update --cpus 1 target_container更新设置。但在大多数情况下,它无法正常工作和响应 "you must provide one or more flags when using this command",但有些东西可以正常工作

有谁知道原因吗?

有些日志是这样的,

$ docker container update --cpus 0.5 target_container
you must provide one or more flags when using this command
$ docker container update --cpus 0.5 target_container
you must provide one or more flags when using this command
$ docker container update --cpus 0.5 target_container
target_container

docker 版本是

Client:
 Version:           18.09.7
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        2d0083d
 Built:             Fri Aug 16 14:19:38 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.7
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.4
  Git commit:       2d0083d
  Built:            Thu Aug 15 15:12:41 2019
  OS/Arch:          linux/amd64
  Experimental:     false

docker update 手册页包括:

--cpus      API 1.29+

A docker version 可以显示您的 API 是否等于或高于 the API 29,这是 Docker 17.05.

为了测试,尝试 --cpus=1--cpus=0.5,考虑到参数应该是 "number of CPUs"

像往常一样使用包含连字符的命令:don't copy-paste it,手动复制。