6

docker 修改容器配置

 2 years ago
source link: https://idealclover.top/archives/556/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

docker 修改容器配置

2019.05.01 | 零零碎碎 | 2459 浏览 | 4 赞 | 0 条评论


请注意,本文编写于 936 天前,最后修改于 933 天前,其中某些信息可能已经过时。

之前自己已经部署的 docker 没有及时设置自启动参数,但是已经建立了 docker ,其中有些已经懒得动了,于是想直接修改。在网上简单搜索了一下,发现了直接修改容器配置的命令。

docker container update --restart=always <containername>

废话不多说,这篇就是这么短。不过哪天应该系统看一下 docker 了。

docker 修改容器启动配置

本文链接:https://idealclover.top/archives/556/

本作品由 idealclover 采用 知识共享署名 - 非商业性使用 - 相同方式共享 4.0 国际许可协议 进行许可,转载请注明出处。

标签: 修改 , docker, 链接 , 容器 , container, restart


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK