sudo systemctl start docker.service Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"and"journalctl -xeu docker.service"for details.
░░ A start job forunit docker.service has finished with a failure. ░░ ░░ The job identifier is3443and the job resultis failed. Dec 0220:28:57 nasserver systemd[1]: docker.service: Start request repeated too quickly. Dec 0220:28:57 nasserver systemd[1]: docker.service: Failed withresult'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit docker.service has entered the 'failed' state withresult'exit-code'. Dec 0220:28:57 nasserver systemd[1]: Failed to start docker.service - Docker Application Container Engine. ░░ Subject: A start job forunit docker.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job forunit docker.service has finished with a failure. ░░ ░░ The job identifier is3631and the job resultis failed. ...skipping... ░░ ░░ The job identifier is3443and the job resultis failed. Dec 0220:28:57 nasserver systemd[1]: docker.service: Start request repeated too quickly. Dec 0220:28:57 nasserver systemd[1]: docker.service: Failed withresult'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit docker.service has entered the 'failed' state withresult'exit-code'. Dec 0220:28:57 nasserver systemd[1]: Failed to start docker.service - Docker Application Container Engine. ░░ Subject: A start job forunit docker.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job forunit docker.service has finished with a failure. ░░ ░░ The job identifier is3631and the job resultis failed.
没啥用,看不出来啥有问题。那再试试dockerd:
1 2
$ dockerd unable to configure the Docker daemon with file/etc/docker/daemon.json: the following directives don't match any configuration option: ip6tab/les
dockerd INFO[2023-12-02T20:43:21.026752504+08:00] Starting up WARN[2023-12-02T20:43:21.026829181+08:00] Running experimental build dockerd needs to be started with root privileges. To run dockerd in rootless mode as an unprivileged user, see https://docs.docker.com/go/rootless/