docker swarm初始化集群报错处理
root@docker-swarm-manager:~# docker swarm init --advertise-addr 172.31.254.180
Error response from daemon: --live-restore daemon configuration is incompatible with swarm mode
#原因分析
–live-restore:在 Docker守护进程崩溃或重启时保持容器运行状态
Swarm 模式:容器的运行状态由 Swarm 管理,并且容器会自动重启到其他节点上
swarm 与 live-restore参数存在冲突 如果想要启动swarm需要 配置 live-restore = false
#解决办法
/etc/docker/daemon.json中true改为false
{
"live-restore": true
}
systemctl restart docker
Docker Swarm初始化集群遇到的live-restore与Swarm模式冲突及解决方案
1万+

被折叠的 条评论
为什么被折叠?



