moby icon indicating copy to clipboard operation
moby copied to clipboard

docker failed to create endpoint kind1 on network kind

Open cyclinder opened this issue 2 years ago • 1 comments

Description

docker failed to create endpoint kind0325-control-plane on network kind. due to network 728d3ab1e97b1b903ff319e55863da882e26d9ecc5a568fafd2ef500fd93e45f does not exist Steps to reproduce the issue:

  1. kind create cluster failed

Describe the results you received:

[root@master kind]# kind create cluster --config cluster.yaml --name kind1
Creating cluster "kind1" ...
 ✓ Ensuring node image (kindest/node:v1.21.1) 🖼
 ✗ Preparing nodes 📦 📦
ERROR: failed to create cluster: docker run error: command "docker run --hostname kind1-control-plane --name kind1-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro --detach --tty --label io.x-k8s.kind.cluster=kind1 --net kind --restart=on-failure:1 --init=false --sysctl=net.ipv6.conf.all.disable_ipv6=0 --sysctl=net.ipv6.conf.all.forwarding=1 --volume /dev/mapper:/dev/mapper --publish=0.0.0.0:18082:8080/TCP --publish=0.0.0.0:18083:8081/TCP --publish=127.0.0.1:41281:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6" failed with error: exit status 125
Command Output: 984180fbbf225fc303d13760495b5a05a1d5e9602b9ec48d43a5f92a494965c9
docker: Error response from daemon: failed to create endpoint kind1-control-plane on network kind: network 728d3ab1e97b1b903ff319e55863da882e26d9ecc5a568fafd2ef500fd93e45f does not exist.

but network 728d3ab1e97b1b903ff319e55863da882e26d9ecc5a568fafd2ef500fd93e45f is exist:

[root@master kind]# docker network ls
NETWORK ID     NAME      DRIVER    SCOPE
6c22b2c3ece6   bridge    bridge    local
064ce41692fa   host      host      local
728d3ab1e97b   kind      bridge    local
cad24a4c0210   none      null      local

[root@master kind]# docker inspect 728d3ab1e97b
[
    {
        "Name": "kind",
        "Id": "728d3ab1e97b1b903ff319e55863da882e26d9ecc5a568fafd2ef500fd93e45f",
        "Created": "2022-02-28T05:23:29.304750744-05:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": true,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "172.18.0.0/16",
                    "Gateway": "172.18.0.1"
                },
                {
                    "Subnet": "fc00:f853:ccd:e793::/64",
                    "Gateway": "fc00:f853:ccd:e793::1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.driver.mtu": "1500"
        },
        "Labels": {}
    }
]

Describe the results you expected: docker create endpoint success.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

[root@master kind]# docker version
Client: Docker Engine - Community
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:45:22 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:43:44 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker info:

[root@master kind]# docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
  scan: Docker Scan (Docker Inc., v0.12.0)

Server:
 Containers: 22
  Running: 0
  Paused: 0
  Stopped: 22
 Images: 93
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.18.0-147.el8.x86_64
 Operating System: CentOS Linux 8 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 15.5GiB
 Name: master
 ID: 6PM7:SKEW:NXXJ:67PV:QPM3:WNUZ:GMWM:N7PZ:LNDC:YTTR:BZ3V:ZOV4
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: cyclinder
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

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

cyclinder avatar Mar 25 '22 08:03 cyclinder