安装K8S过程增加了/etc/docker/daemon.json 文件,重启系统后docker无法启动。

查看错误日志:

journalctl -xeu docker | grep Failed

错误信息: Failed to start Docker Application Container Engine.
 

  docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2022-06-23 21:43:26 CST; 1s ago
     Docs: https://docs.docker.com
  Process: 9721 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 9721 (code=exited, status=1/FAILURE)

解决此问题只需用读写的方式重新挂载磁盘就好

命令如下:

mount -o remount,rw /

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐