项目3台新增主机因为Docker版本过低,升级到18.09.2-3后,Docker服务启动失败,日志获取错误信息如下:
Apr 09 11:26:04 CSH1RTM042V dockerd[69872]: Error starting daemon: invalid mirror: unsupported scheme "xxx" in "xxx:50002"
对应配置文件/etc/docker/daemon.json
{
"insecure-registries": ["xxxx:50002"],
"registry-mirrors": ["xxxx:50002"],
"live-restore": true,
"log-opts": {"max-size": "100m","max-file": "10"}
}
由于版本升级,新版本"registry-mirrors"参数要求提供schema信息(http/https),服务无法启动也是因此配置与老版不能通用所致,最后添加http://后恢复正常
{
"insecure-registries": ["xxxx:50002"],
"registry-mirrors": ["http://xxxx:50002"],
"live-restore": true,
"log-opts": {"max-size": "100m","max-file": "10"}
}