I would like to set a specific IP for one of my containers running on Synology DSM 6.2.1 with Docker version 17.05.0-ce, build 9f07f0e-synology. uname -r = 3.10.105.
What is the easiest way to get an exclusive IP for a container (same subnet as host)?
docker network create \ --driver bridge \ --ip-range=192.168.1.0/24 \ --subnet=192.168.1.0/24 \ --gateway=192.168.1.1 \ my_bridge
but it didn’t end well, my synology’s dns stopped working and I couldn’t access it from WAN.
Can you create a network on the same subnet as the host?