Hi, I have a problem running docker on Debian 11.
The installation goes fine, but docker does not start.
Instaling using repository from Debian | Docker Docs
uname -a
Linux SERWER 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
docker --version
Docker version 20.10.10, build b485636
systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-11-14 02:28:12 CET; 21min ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Process: 1216 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 1216 (code=exited, status=1/FAILURE)
CPU: 172ms
lis 14 02:28:12 SERWER systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
lis 14 02:28:12 SERWER systemd[1]: Stopped Docker Application Container Engine.
lis 14 02:28:12 SERWER systemd[1]: docker.service: Start request repeated too quickly.
lis 14 02:28:12 SERWER systemd[1]: docker.service: Failed with result ‘exit-code’.
lis 14 02:28:12 SERWER systemd[1]: Failed to start Docker Application Container Engine.
Try to run journalctl -xe -u docker as root to find more log messages. This is probably what systemd would recommend when you try to start or restart the docker daemon.
I have similar
This means the service could not start because the configuration is wrong or some dependencies are missing. So systemd tries to restart the daemon and reaches the restart limit. I have similar error when my /etc/docker/daemon.json has syntax error or invalid configuration.
I tried the installation process inside an LXD virtual machine. It works perfectly so the reason of the issue must be your environment.
░░ Subject: Ukończono zadanie zatrzymania dla jednostki docker.service
░░ Defined-By: systemd
░░ Support:
░░
░░ Ukończono zadanie zatrzymania dla jednostki docker.service.
░░
░░ Identyfikator zadania: 420, wynik zadania: done.
lis 14 13:23:32 SERWER systemd[1]: docker.service: Start request repeated too quickly.
lis 14 13:23:32 SERWER systemd[1]: docker.service: Failed with result ‘exit-code’.
░░ Subject: Jednostka się nie powiodła
░░ Defined-By: systemd
░░ Support:
░░
░░ Jednostka docker.service przeszła do stanu „failed” (niepowodzenia)
░░ z wynikiem „exit-code”.
lis 14 13:23:32 SERWER systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: Zadanie uruchamiania dla jednostki docker.service się nie powiodło
░░ Defined-By: systemd
░░ Support:
░░
░░ Zadanie uruchamiania dla jednostki docker.service zostało ukończone z niepowodzeniem.
░░
░░ Identyfikator zadania: 420, wynik zadania: failed.