use docker container on host network without sharing host's ip

My docker host is part of the local network 192.168.178.0/24.

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.

  • Docker php with composer PSR-4
  • How to ssh+bash into Docker container in a single command
  • Backup + Version Docker Containers by adding Volumes and Commit
  • Link between two docker containers in a network
  • Docker automated build shows empty Dockerfile
  • Merge container files when using docker-sync
  • Maven build with parameter somehow cache parameter in war?
  • Installing GNOME Desktop on Centos 7 minimal : Docker image
  • Private environment variables when deploying with Docker on AWS Elastic Beanstalk
  • How to pull docker image from docker hub private registry into Azure Container Service (ACS)?
  • Deploy a .war into a Docker image by fabric8io docker-maven-plugin
  • How to filter docker process based on image
  • 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 :-/

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.