Accessing external hosts from docker container -
i trying dockerize application. have 2 servers, server1 , server2. server1 uses webservice hosted on server2. have in /etc/default/docker on server1:
docker_opts="--dns 8.8.8.8 --dns 8.8.4.4 --iptables=false"
as understand prevents docker making changes iptables, overriding ufw settings. ufw status shows this:
status: active action -- ------ ---- 22 allow anywhere 443 allow anywhere 2375/tcp allow anywhere 22 (v6) allow anywhere (v6) 443 (v6) allow anywhere (v6) 2375/tcp (v6) allow anywhere (v6)
now trouble not able access server2 app runs in container on server1. if don't use --iptables=false flag can access server2. can access server2 container without having sacrifice ufw ?
if matters , both server1 , server2 on digitalocean , have private networking enabled.
Comments
Post a Comment