Docker container starting without network - not adding vethXXXXXXX: Failed to get link config: No such device

Hi!

I have a situation here. Running 3 identical containers, just different name and port. Trying to add one more fails to let the container have connection to the outside world, hence makes the container useless. Container is created, it starts, but in the journal I get such errors…

systemd-udevd[4611]: veth9c4b829: Failed to get link config: No such device

Any idea why this is happening? It did work on other containers. :grinning:

Running Ubuntu Linux 20.04.3 Docker version 20.10.12, build e91ed57

On top of that… Adding such a device manually and bringing it up does not help the container get networking.

ip link add dev veth9c4b829 type veth
ip link set veth9c4b829 up

:sob:

A few questions to get closer to the solution:

  • How did you installed Docker? From the Ubuntu APT repository or from Docker’s APT repository
  • When you run ip link without parameters, how many veth interfaces are there?
  • How many Docker networks do you have on that machine?

I have found similar issues to this: New Install: docker: Failed to create the container ID file: open cids/app_bootstrap.cid: no such file or directory - #2 by Falco - installation - Discourse Meta

where the solution was to install Docker not from the Ubuntu repository but from the one that Docker mentions in the documentation.

Through the docker repo.

as many as the containers

Just the default docker0 (172.17.0.0/16) . I did not add any additional ones.

I have the same issue, how did you resolve this?

1 Like