Failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd

thanks to saulg for the fix

I was installing on ubuntu focal using the commandline directions.

got the install error:

Setting up docker-ce (5:20.10.7~3-0~ubuntu-focal) ...
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" 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 2021-07-11 02:33:35 PDT; 6ms ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 493396 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 493396 (code=exited, status=1/FAILURE)
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)

After running (and stopping) the command:

sudo /usr/bin/dockerd -H unix:// --containerd=/run/containerd/containerd.sock

I was able to repeat the install without problem. (side note: my vpn also messed with the install until I turned it off)

The process list after install and running hello-world shows:

/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock