docker context update
說明 | 更新上下文 |
---|---|
用法 | docker context update [選項] 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