docker swarm join --token 报错
Error response from daemon: --live-restore daemon configuration is incompatible with swarm mode
解决方法:
修改/etc/docker/daemon.json
{
"live-restore": false
}
执行命令
systemctl daemon-reload
systemctl restart docker
如若遇到重启失败
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
修改 /etc/sysconfig/docker 添加参数
vi /etc/sysconfig/docker
重启docker
systemctl daemon-reload
systemctl restart docker