docker0: link is not ready docker_gwbridge: link is not ready 或者更简单的排查方法,直接手动启动 dockerd 看看。启动方法可以通过 grep ExecStart /usr/lib/systemd/system/docker.service 查看。
一般来说按如下执行就行:
$ /usr/bin/dockerd --debug 然后能看到最后输出:
INFO[2021-07-29T02:25:55.811673622Z] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby failed to start daemon: Error initializing network controller: list bridge addresses failed: PredefinedLocalScopeDefaultNetworks List: [10.252.0.0/24 10.252.1.0/24 10.252.2.0/24]: no available network 这时候可以看下 ip addr,是否有 docker0 和 docker_gwbridge,