Docker Community Forums

Share and learn in the Docker community.

Network id not found

Hi,

I have a bug whith docker, when i restart my server my containers no longer see the docker network that I created (but the network exists with the right id)

OS: Unraid 6.8.3
Docker: 19.03.5

My docker network:

docker network create \
-o parent=virbr3-lab \
--driver macvlan \
--subnet 192.168.3.0/24 \
--gateway 192.168.3.10 \
test

My virbr3-lab network create with virsh (libvirt):

<network ipv6='yes'>
  <name>lab-network-3</name>
  <uuid>7529bb5c-676d-47c4-93b7-f0fe772187ca</uuid>
  <bridge name='virbr3-lab' stp='on' delay='0'/>
  <mac address='52:54:00:a7:8f:5b'/>
  <ip address='192.168.3.1' netmask='255.255.255.0'>
  </ip>
  <route address='192.168.3.0' prefix='24' gateway='192.168.3.10'/>
</network>

My error when i restart my server:

If you are attempting to add a container to an existing network that no longer exists, then you can use docker-compose up --force-recreate. I found this GitHub issues comment to be a helpful overview.

the error is indeed due to the fact that the docker network has as its parent the virtual network virsh because if I remove it the option

-o parent=virbr1-lab \

it’s working.

I cannot force it because I have this error with containers which are automatically created by another