Docker Community Forums

Share and learn in the Docker community.

Docker stack container cannot reach LAN (AD) - help


(Xoroz) #1

Continuing the discussion from Container port unreachable from host though mapped/exposed:

thanks for the reply.

I guess it was something related to that OS.
With rancherOS it works fine and I can access my container from outside.

now I am having a different problem where I can not access the outside (LAN)
and I am unable to add route to the container .

Our OTRS container must talk to the Active Directory. But there is no route to it. The HOST (RancherOS) can without any problems.

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 172.19.0.1 0.0.0.0 UG 0 0 0 eth1
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
10.255.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
[root@20fa47ba3e33 otrs]# route add -net 10.255.0.0 netmask 255.255.0.0 gw 172.19.0.1

SIOCADDRT: Operation not permitted

two weeks now trying to make docker stack work!
very very frustrating

lack of information and lack of good examples out there.

I am starting to wonder how many people do have this in real complex production…