use docker container on host network without sharing host's ip
My docker host is part of the local network
Is there a way to run a container that becomes a part of the host network, but does not share the same ip as the host? So for example if the host has the ip 192.168.178.5 i’d like to provide 192.168.178.8 to the container without interfering with the docker host’s network configuration.
One Solution collect form web for “use docker container on host network without sharing host's ip”
since a docker container is by nature bound to use the networking stack of it’s host, it also has to share the hosts IP to communicate with the network. For a one-container setup, the only solution should be to add a second NIC to the host and use that second NIC and the provided IP exclusively for your docker… But apart from that I don’t see any solution that does not deeply mutilate the OSI model of your host’s network stack and thus include some major side-effects :-/