Jump to content

Docker network issue


palatin38

Recommended Posts

Hello All,

I have created some dockers containers using docker compose using br0 external network.
Unfortunately, after that, I saw that the newly created docker has a kind of guid (not br0) as network on the docker screen of unraid.
On the docker compose I have put the following information :


networks:
  br0:
    name: br0
    external: true

and each container is using it this way as I need to put a static IP :

    networks:
      br0:
        ipv4_address: '**********'

Is it a normal behaviour ?

Looking on the code of the php page, I saw that this is referencing HostConfig:network_mode which is a guid and not br0 in this case. This is the NetworkSettings:Networks:br0:NetworkID from the networks part which is br0.

Futhermore if I stop the docker service then start it again, the newly created dockers don't work anymore saying that the network 'long guid here' is not existing.
 

Thank for your help and have a nice day !

Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...