docker context update
说明 | 更新上下文 |
---|---|
用法 | docker context update [OPTIONS] CONTEXT |
说明
更新现有 context
。请参阅 context create。
选项
选项 | 默认值 | 说明 |
---|---|---|
--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