My host IP is 10.1.1.1 and I’d like my docker to be reachable at 10.1.1.2 for all ports (udp/tcp)
I have tried below but the syntax doesn’t seem correct.
#docker run -d -P 10.1.1.2 container_name
The syntax below works but I want to be able to map all ports to 10.1.1.2.
docker run -d -p 10.1.1.2:80:80 container_name