A strange issue happened without a clear cause and by the time I didn’t fully understand why/how the solution worked, documented here for revisit if necessary.
Note: Run docker command with sudo is not encouraged, add user to docker group is preferred.
Issue: Docker daemon startup fails contineously, checking deamon status and journal:
1 | × docker.service - Docker Application Container Engine |
First to adjust the docker daemon unit file to disabke restart by commenting out:
1 | #TimeoutSec=0 |
Then run systemctl daemon-reload
and restart docker daemon to see detailed error message:
1 | ... |
Check the network interface ip a s
, there is no docker0 bridge.
Solution: To fix it, create new docker network bridge, reference ticket:
1 | # delete docker0 bridge |
The inet IP is from /etc/docker/daemon.json
bip field, for example:
1 | { |
See daemon.json attribute description.
Then after bridge is created, restart docker daemon:
1 | sudo systemctl restart docker |