i have following problem:
assume started 2 docker containers on host machine: , b.
docker run -ti -p 2000:2000 docker run b -ti -p 2001:2001 i want able each of containers internet by:
how reach that?
the rest of equation here normal tcp / ip flow. you'll need make sure of following:
- if host has implicit deny incoming traffic on physical interface, need open ports 2000 , 2001, service (docker or not).
- if host behind nat or other external means of routing, you'll need punch holes ports there well.
- you'll need external ip address (either 1 attached host or 1 in front of nat allowing access ports).
as far docker concerned, you've done required open ports service running in container correctly.
Comments
Post a Comment