Hi,
My docker containers werent working and after checking I saw docker was failing. I searched online and followed some steps but it still isnt working.
I removed docker and reinstalled it according to one forum but the issue persists. I purged docker and reinstalled as per official docker installation instructions but got the following error and it is pretty much in the same place as journalctl and syslog shows.
Any idea what can fix this?
Thanks!
After this operation, 103 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package docker-ce.
(Reading database ... 183332 files and directories currently installed.)
Preparing to unpack .../docker-ce_5%3a24.0.2-1~ubuntu.22.04~jammy_amd64.deb ...
Unpacking docker-ce (5:24.0.2-1~ubuntu.22.04~jammy) ...
Setting up docker-ce (5:24.0.2-1~ubuntu.22.04~jammy) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
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.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2023-06-06 06:39:22 UTC; 9ms ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Process: 2975 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)
Main PID: 2975 (code=exited, status=2)
CPU: 975ms
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: main.newDaemonCommand.func1(0xc0006de000?, {0xc0006c4360?, 0x3?, 0x3?})
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: /go/src/github.com/docker/docker/cmd/dockerd/docker.go:39 +0x94
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).execute(0xc0006de000, {0xc000126010, 0x3, 0x3})
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: /go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:916 +0x862
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0006de000)
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: /go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:1044 +0x3bd
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).Execute(...)
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: /go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:968
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: main.main()
Jun 06 06:39:22 landmarkpaperless dockerd[2975]: /go/src/github.com/docker/docker/cmd/dockerd/docker.go:109 +0x18c
Jun 06 06:39:22 landmarkpaperless systemd[1]: docker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 06 06:39:22 landmarkpaperless systemd[1]: docker.service: Failed with result 'exit-code'.
Jun 06 06:39:22 landmarkpaperless systemd[1]: Failed to start Docker Application Container Engine.
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
docker-ce
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)