Hi,
In the last few days I performed a regular dist-upgrade and now docker-ce fails to start. I have removed, purged, re-installed etc and have not found anything.
The upgrade fails like this:
Setting up docker-ce (5:23.0.0-1~ubuntu.22.04~jammy) ...
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 Sun 2023-02-05 13:33:54 AEDT; 6ms ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Process: 1509861 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)
Main PID: 1509861 (code=exited, status=2)
CPU: 281ms
Feb 05 13:33:54 hal systemd[1]: docker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 05 13:33:54 hal systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 05 13:33:54 hal 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
E: Sub-process /usr/bin/dpkg returned an error code (1)
Checking the journal doesn’t give me any clues except a panic message about interfaces:
Feb 05 13:33:59 hal dockerd[1510161]: panic: interface conversion: interface {} is nil, not string
Feb 05 13:33:59 hal dockerd[1510161]: goroutine 1 [running]:
Feb 05 13:33:59 hal dockerd[1510161]: github.com/docker/docker/libnetwork/drivers/ipvlan.(*configuration).UnmarshalJSON(0xc000e73830, {0xc000bcc000, 0xee, 0xee})
Feb 05 13:33:59 hal dockerd[1510161]: /go/src/github.com/docker/docker/libnetwork/drivers/ipvlan/ipvlan_store.go:196 +0x40c
Feb 05 13:33:59 hal dockerd[1510161]: main.main()
Feb 05 13:33:59 hal dockerd[1510161]: /go/src/github.com/docker/docker/cmd/dockerd/docker.go:102 +0x15d
Feb 05 13:33:59 hal systemd[1]: docker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
The status is also not helpful:
mark@hal:/etc/docker sudo systemctl status docker.service [13:36:30]
× docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2023-02-05 13:34:01 AEDT; 2min 29s ago
TriggeredBy: × docker.socket
Docs: https://docs.docker.com
Process: 1510161 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)
Main PID: 1510161 (code=exited, status=2)
CPU: 196ms
Feb 05 13:33:59 hal systemd[1]: docker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 05 13:33:59 hal systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 05 13:33:59 hal systemd[1]: Failed to start Docker Application Container Engine.
Feb 05 13:34:01 hal systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Feb 05 13:34:01 hal systemd[1]: Stopped Docker Application Container Engine.
Feb 05 13:34:01 hal systemd[1]: docker.service: Start request repeated too quickly.
Feb 05 13:34:01 hal systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 05 13:34:01 hal systemd[1]: Failed to start Docker Application Container Engine.
The versions installed are:
mark@hal:/etc/docker dpkg -l | egrep "docker|container" [13:37:27]
ii containerd.io 1.6.16-1 amd64 An open and reliable container runtime
ii docker-buildx-plugin 0.10.2-1~ubuntu.22.04~jammy amd64 Docker Buildx cli plugin.
iF docker-ce 5:23.0.0-1~ubuntu.22.04~jammy amd64 Docker: the open-source application container engine
ii docker-ce-cli 5:23.0.0-1~ubuntu.22.04~jammy amd64 Docker CLI: the open-source application container engine
ii docker-ce-rootless-extras 5:23.0.0-1~ubuntu.22.04~jammy amd64 Rootless support for Docker.
ii docker-compose-plugin 2.15.1-1~ubuntu.22.04~jammy amd64 Docker Compose (V2) plugin for the Docker CLI.
ii docker-scan-plugin 0.23.0~ubuntu-jammy amd64 Docker scan cli plugin.
ii libnss-mymachines:amd64 249.11-0ubuntu3.6 amd64 nss module to resolve hostnames for local container instances
ii systemd-container 249.11-0ubuntu3.6 amd64 systemd container/nspawn tools
I have reverted to iptables-legacy.
Any other ideas to debug this behaviour?