Hi all,
I'm fairly new to using docker and rancher desktop but am having some issues regarding the --net=host flag for an image of ubuntu16.04 I built running on an Ubuntu24.04 machine. When using ifconfig inside the a container created from the image, the network interfaces don't match what my system has and instead seems to be using the normal bridge network mode. I managed to get it working as expected by building and running the image as sudo, but this switches the context to the default docker one, so none of the sudo built images or containers appear in rancher desktop. Does anyone know either how to make the --net=host flag to work without sudo or how to get sudo built images to appear in rancher desktop?
Thanks in advance!