Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-ce installation error , no avaialble network #1386

Closed
2 of 3 tasks
yangcheng opened this issue Apr 12, 2022 · 4 comments
Closed
2 of 3 tasks

docker-ce installation error , no avaialble network #1386

yangcheng opened this issue Apr 12, 2022 · 4 comments

Comments

@yangcheng
Copy link

yangcheng commented Apr 12, 2022

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

install docker and start dockerd successfully

Actual behavior

show error,

Setting up docker-ce-rootless-extras (5:20.10.14~3-0~ubuntu-focal) ...
Setting up docker-ce (5:20.10.14~3-0~ubuntu-focal) ...
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 -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 Tue 2022-04-12 13:24:02 CST; 7ms ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 11062 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, stat
us=1/FAILURE)
   Main PID: 11062 (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
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.15) ...
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
(base) ➜  ~ systemctl edit docker

Steps to reproduce the behavior

on ubuntu 20.04, I follow instruction to install docker use apt install docker-ce

Output of docker version:

(base) ➜  ~ docker version
Client: Docker Engine - Community
 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:48:02 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Output of docker info:


(base) ➜  ~ docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.8.1-docker)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info

Additional environment details (AWS, VirtualBox, physical, etc.)

physical devices.

the out put of logs.

(base) ➜ ~ journalctl -fu docker
-- Logs begin at Sat 2022-04-02 12:58:23 CST. --

4月 12 13:24:18 rtx dockerd[12331]: time="2022-04-12T13:24:18.418320635+08:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
4月 12 13:24:18 rtx dockerd[12331]: failed to start daemon: Error initializing network controller: list bridge addresses failed: PredefinedLocalScopeDefaultNetworks List: [172.17.0.0/16 172.18.0.0/16 172.19.0.0/16 172.20.0.0/16 172.21.0.0/16 172.22.0.0/16 172.23.0.0/16 172.24.0.0/16 172.25.0.0/16 172.26.0.0/16 172.27.0.0/16 172.28.0.0/16 172.29.0.0/16 172.30.0.0/16 172.31.0.0/16 192.168.0.0/20 192.168.16.0/20 192.168.32.0/20 192.168.48.0/20 192.168.64.0/20 192.168.80.0/20 192.168.96.0/20 192.168.112.0/20 192.168.128.0/20 192.168.144.0/20 192.168.160.0/20 192.168.176.0/20 192.168.192.0/20 192.168.208.0/20 192.168.224.0/20 192.168.240.0/20]: no available network
4月 12 13:24:18 rtx systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
4月 12 13:24:18 rtx systemd[1]: docker.service: Failed with result 'exit-code'.
4月 12 13:24:18 rtx systemd[1]: Failed to start Docker Application Container Engine.
4月 12 13:24:20 rtx systemd[1]: docker.service: Scheduled restart job, restart counter is at 5.
4月 12 13:24:20 rtx systemd[1]: Stopped Docker Application Container Engine.
4月 12 13:24:20 rtx systemd[1]: docker.service: Start request repeated too quickly.
4月 12 13:24:20 rtx systemd[1]: docker.service: Failed with result 'exit-code'.
4月 12 13:24:20 rtx systemd[1]: Failed to start Docker Application Container Engine.
@yangcheng
Copy link
Author

it turns out I have my expressvpn connected, if I quit expressvpn and docker can start fine. I can also connect to vpn later.
but if vpn is connected, I would have the issue.

@thaJeztah
Copy link
Member

Can you try if this works with docker 20.10.15 ? (see moby/moby#43360)

@yangcheng
Copy link
Author

great! it works now

➜  compose git:(master) docker --version
Docker version 20.10.15, build fd82621

@thaJeztah
Copy link
Member

Good news, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants