docker context update
| 描述 | 更新上下文 |
|---|---|
| 用法 | docker context update [OPTIONS] CONTEXT |
描述
更新现有的context。参见 创建上下文。
选项
| 选项 | 默认值 | 描述 |
|---|---|---|
--description | 上下文的描述 | |
--docker | 设置docker端点 |
示例
更新现有的上下文
$ docker context update \
--description "some description" \
--docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" \
my-context