Accessing node red container using i'ts host name

Hi,

I have set up a docker ipvlan on my Rpi and started one (or several) node-red container(s) using this ipvlan, and it gets its own IP address on my LAN and node-red is accessible using this IP address from anywhere on my LAN. But it is not accessible using its hostname as is the host Rpi it's running on.

I have tried installing Avahi in the container but with no real luck.

I thought it better to first ask what would be the best approach to get this to work. I.e making the node-red container respond to requests using its hostname.

/Mats

Did you specify hostnames for the docker containers?

Also, are you using a local DNS? E.g. from your Router? If so, you should specify that to the container as well I think.

The container gets its container id as hostname by default, but I have tried to set a hostname using the docker hostname parameter, but still no access through use of the name.

The container host has Avahi running and is accessible by name through mDNS, I believe, so I don't think I should need any local DNS on my network.

I will continue to see if I can get Avahi running in Alpine in the container.

Another thing, not so important, is that the container is not accessible from the host even via its IP as from elsewhere on the LAN.

I understand that to be a security feature when using ipvlan. I'm sure the docker docs mentioned it.