背景
Linux内核升级后,docker服务启动失败,报驱动不支持。
jwlLinux docker # systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-04-24 15:21:27 CST; 7min ago
Docs: https://docs.docker.com
Process: 3987 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
Main PID: 3987 (code=exited, status=1/FAILURE)
Apr 24 15:21:26 jwlLinux systemd[1]: Starting Docker Application Container Engine...
Apr 24 15:21:26 jwlLinux dockerd[3987]: time="2022-04-24T03:21:26.143772482-04:00" level=info msg="libcontainerd: new containerd process, pid: 3994"
Apr 24 15:21:27 jwlLinux dockerd[3987]: time="2022-04-24T03:21:27.148200495-04:00" level=error msg="[graphdriver] prior storage driver aufs failed: dri
Apr 24 15:21:27 jwlLinux dockerd[3987]: Error starting daemon: error initializing graphdriver: driver not supported
Apr 24 15:21:27 jwlLinux systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 15:21:27 jwlLinux systemd[1]: Failed to start Docker Application Container Engine.
Apr 24 15:21:27 jwlLinux systemd[1]: docker.service: Unit entered failed state.
Apr 24 15:21:27 jwlLinux systemd[1]: docker.service: Failed with result 'exit-code'.
Apr 24 15:21:27 jwlLinux systemd[1]: docker.service: Start request repeated too quickly.
Apr 24 15:21:27 jwlLinux systemd[1]: Failed to start Docker Application Container Engine.
解决方案
增加dockerd的启动配置文件:
jwlLinux docker # cat /etc/docker/daemon.json
{
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
]
}
问题解决
|