Editing the daemon.json copy pasted original from this documentation page doesn’t work and doesn’t let docker start:
{
"storage-driver": "overlay2"
}
Any way to get help? Logs are here:
░ The job identifier is 10512 and the job result is failed.
Nov 02 13:14:42 ubuntu systemd[1]: docker.service: Scheduled restart job, resta>
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit docker.service has been scheduled, as the r>
░░ the configured Restart= setting for the unit.
Nov 02 13:14:42 ubuntu systemd[1]: docker.service: Start request repeated too q>
Nov 02 13:14:42 ubuntu systemd[1]: docker.service: Failed with result 'exit-cod>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit docker.service has entered the 'failed' state with result 'exit-cod>
Nov 02 13:14:42 ubuntu systemd[1]: Failed to start docker.service - Docker Appl>
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 10605 and the job result is failed.
Please, share the logs without truncating the end. You can do it by passing --no-pager to the hournalctl command.
I don’t expect anything important there but let’s make sure. What I see is the error message saying you had too many restarts. It is not the original error message. I wanted to make a blogpost about solving this, but I could not reproduce the missing details as the daemon stopped after two or three retries. So please, share your docker environment details as well, but usually you need to back to odler logs to see the original issue like the driver is not supported.
We usually need the following information to understand the issue:
What platform are you using? Windows, Linux or macOS? Which version of the operating systems? In case of Linux, which distribution?
How did you install Docker? Sharing the platform almost answers it, but only almost. Direct links to the followed guide can be useful.
On debian based Linux, the following commands can give us some idea and recognize incorrectly installed Docker:
docker info
docker version
Review the output before sharing and remove confidential data if any appears (public IP for example)