I upgraded my Ubuntu from 18.04 to 20.04. I have been unable to run all my docker containers. Tried uninstalling docker and re-installing via links such as this. When using apt, the installation freezes on the configuration of docker. The installation is not able to start docker.
Eventually, it seems to boil down to a configuration problem.
user@user-pc:~$ sudo dpkg --configure -a
Setting up docker-ce (5:20.10.1~3-0~ubuntu-focal) ...
/bin/sh: 0: Illegal option -w
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status-2
dpkg: dependency problems prevent configuration of docker-ce-rootless-extras:
docker-ce-rootless-extras depends on docker-ce; however:
Package docker-ce is not configured yet.
dpkg: error processing package docker-ce-rootless-extras (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
docker-ce
docker-ce-rootless-extras
The docker status
sudo service docker status
Shows that docker is active but any docker command hangs forever.
Also docker-compose
commands timeout.
docker-compose logs -f
...
...
docker.errors.DockerException: Error while fetching server API version: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
I am stumped, been trying to resolve this, three days now.