使用的docker版本是 17.03.-ce
修改daemon.json文件后无法启动docker, 查看docker日志如下
Oct 18 09:53:51 CNSZO37547 systemd[1]:Starting Docker Application Container Engine...
Oct 18 09:53:51 CNSZ037547 dockerd[66010]:unable to configure the Docker daemon with file /etc/docker/daemon.json:
the following directives are specified both as a flag and in the configuration file:runtimes:(from flag:[kata-run
time],from file:map[kata-runtime:map[path:/usr/bin/kata-runtime]])
Oct 18 09:53:51 CNSZ037547 systemd[1]:docker.service:main process exited,code=exited,status=1/FAILURE
Oct 18 09:53:51 CNSZ037547 systemd[1]:Failed to start Docker Application Container Engine,
Oct 18 09:53:51 CNSZ037547 systemd[1]:Unit docker.service entered failed state.
Oct 18 09:53:51 CNSZ037547 systemd[1]:docker.service failed.
从日志看应该就是配置冲突导致,
查看我的docker配置在
/etc/systemd/system/docker.service.d/kata-containers.conf
文件中确认配置docker启动方式
这里把/etc/systemd/system/docker.service.d/kata-containers.conf删了,重新启动,docker完美启动
总结:出现类似黑体字报错的多半是配置冲突问题,网上也有很多其他配置地方导致的,但根据环境不一样可以配置文件也不一样。