如何确定 Docker 抛出的网络不可达错误的根源

如何确定 Docker 抛出的网络不可达错误的根源

我正在尝试配置 Docker 以在我的旧 SuperServer 上运行,但无法正确设置网络位。网络配置和 Docker 错误如下,欢迎提出想法和建议。

触发错误的命令是:

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer --restart unless-stopped

网络配置

network:
bonds:
    bond0:
        addresses: [10.0.0.57/24]
        #dhcp4: yes
        interfaces:
        - enp5s0
        - enp6s0
        parameters:
            lacp-rate: fast
            mode: 802.3ad
            transmit-hash-policy: layer2
ethernets:
    enp5s0: {}
    enp6s0: {}
version: 2

Docker 状态输出

docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-07-23 12:48:07 UTC; 2min 55s ago
Docs: https://docs.docker.com
Main PID: 3967 (dockerd)
Tasks: 9
CGroup: /system.slice/docker.service
       └─3967 /usr/bin/dockerd -g /media/egg/docker -H fd:// --containerd=/run/containerd/containerd.sock

Jul 23 12:48:06 aragog dockerd[3967]: time="2019-07-23T12:48:06.296307788Z" level=info msg="Loading containers: start."
Jul 23 12:48:06 aragog dockerd[3967]: time="2019-07-23T12:48:06.668399643Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip
Jul 23 12:48:06 aragog dockerd[3967]: time="2019-07-23T12:48:06.885466182Z" level=info msg="Loading containers: done."
Jul 23 12:48:07 aragog dockerd[3967]: time="2019-07-23T12:48:07.137260239Z" level=info msg="Docker daemon" commit=aeac949 graphdriver(s)=overlay2 version=19.03.0
Jul 23 12:48:07 aragog dockerd[3967]: time="2019-07-23T12:48:07.137992573Z" level=info msg="Daemon has completed initialization"
Jul 23 12:48:07 aragog dockerd[3967]: time="2019-07-23T12:48:07.277043882Z" level=info msg="API listen on /var/run/docker.sock"
Jul 23 12:48:07 aragog systemd[1]: Started Docker Application Container Engine.
Jul 23 12:49:26 aragog dockerd[3967]: time="2019-07-23T12:49:26.970022388Z" level=warning msg="Error getting v2 registry: Get https://registry-1.docker.io/v2/: dial tcp 34.199.40.84:
Jul 23 12:49:26 aragog dockerd[3967]: time="2019-07-23T12:49:26.970220199Z" level=info msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: dial
Jul 23 12:49:26 aragog dockerd[3967]: time="2019-07-23T12:49:26.970403292Z" level=error msg="Handler for POST /v1.40/images/create returned error: Get https://registry-1.docker.io/v2

~

相关内容