February 7, 20242 yr Hello everyone, I want my containers to communicate between each other via hostnames. Do I have to set the --hostname parameter on every container manually, or is there a default hostname? Is this possible in the standard Bridge network unraid creates, or do i need to create a custom network? So far I tried using the container names as hostname which did not work out. But communication between containers using the internal 172.17.0.0/16 address obviously works. I need a hint in the right direction, how is this supposed to work?
February 7, 20242 yr Author you have to use a custom network for your containers to reach each other via hostname docker network create --subnet 172.20.0.0/16 mysupercooldockernetwork now it works. Edited February 7, 20242 yr by Greyberry
February 8, 20242 yr If you delete and recreate your docker image for any reason, remember to recreate any custom networks before you reinstall your containers with the previous apps function.
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.