云计算核心技术Docker教程:查看当前正在运行的docker swarm的解锁密钥
考虑这样一种情况,您的 swarm 正在按预期运行,然后管理器节点变得不可用。您解决了问题并使物理节点重新联机,但是您需要通过提供解锁密云计钥来读取加密凭据和 Raft 日志来解锁管理器。
如果自从节点离开 swarm 后密钥没有被轮换,并且你在 swarm 中有法定数量的功能管理器节点算核,你可以docker swarm unlock-key不带任何参数查看当前的解锁密钥。
$ docker swarm unlock-key
To unlock心技 a swarm manager after it restarts, run the `docker swarm unlock`
command and provid术De the following key:
SWMKEY-1-8jDgbUNlJtUe5P/lcr9IXGVxqZpZUXPzd+qzcGp4ocZYA
Please remember to store this key in a password manager, since without it you
willke not be able to restart the manager.
如果在 swarm 节点变得不可用之后密钥被轮换,并且您没有前一个密钥的记录,您可能需要r教强制管理器离开 swarm 并将其作为新管理器加入到 swarm 中。
轮换解锁钥匙
您应该定期轮换锁定群的解锁密钥。
$ docker swarm un程:lock-key --rotate
Successfully rotated manager unlock key.
To unlock a swarm ma查看nager after it restarts, run the `docker swarm unlock`
command and provide the foll当前owing key:
SWMKEY-1-8jDgbUNlJtUe5P/lcr9IXGVxqZpZUXPzd+qzcGp4ZYA
Please rem正在ember to store this key in a password manager, since without it you
will not be able运行 to restart the manager.
提示:当您轮换解锁钥匙时,请将旧钥匙的记录保留几分钟,这样如果管理员在获得新钥匙之前下台,它仍然可以用的d旧钥匙解锁。
相关文章:
- 使用 Flux+Flagger+Istio+Kubernetes 实战 GitOps 云原生渐进式(金丝雀)交付
- 标签: 李昌钰 辛普森案 刑事鉴识 纽黑文大学
- 甲骨文第三财季营收同比增长18% 净利润同比下降18%
- 埃森哲裁员超1.1万名员工,全面转向人工智能
- 人脸识别访客系统的好处有哪些 ?
- 谷歌发布第八代TPU与Gemini企业代理平台,重新定义“代理企业”基础设施
- Gartner:2026年全球IT支出预计将达到6.15万亿美元,同比增长10.8%
- 标签: 隆源股份 新能源汽车 三电系统 铝合金零部件
- 标签: 亚马逊 杨钧 AGS 裁员
- 谷歌推出全新图像生成模型:Gemini 2.5 Flash Image 免费且支持中文
- https://www.shacknews.com/editorial-search?q=谷歌霸屏软件【tg:seogoogle987】,0lA
- https://www.tullygroup.us/?ID=hbkq8jFjrQlVRrwzEmvoUJJAY4e1Lfo5&s=谷歌霸屏软件【tg:seogoogle987】,T3N
- https://www.temu.com/search_result.html?search_key=谷歌霸屏软件【tg:seogoogle987】awS
- https://www.whirlpool.com.hk/chinese/catalogsearch/result?cat=30&q=谷歌霸屏软件【tg:seogoogle987】,v6f
- https://www.sogou.com/web?query=谷歌霸屏软件【tg:seogoogle987】,1vW
- https://www.msrenewal.com/search/谷歌霸屏软件【tg:seogoogle987】,O79
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌霸屏软件【tg:seogoogle987】,D9W
- https://www.qylaws.com/search/谷歌霸屏软件【tg:seogoogle987】,4C6
- https://www.vietnamconsulate-sf.org/?action=CHECK&s=谷歌霸屏软件【tg:seogoogle987】,kqb
- https://www.oprny.com/search.php?search_query=谷歌霸屏软件【tg:seogoogle987】,HN2
