ip address - Can not resolve hostname in Docker 1.10 -
i created network , started 2 containers in network
docker network create frontend docker run -itd --name container1 --net frontend busybox docker run -itd --name container2 --net frontend busybox
2 containers ping each other ipaddress can not use hostname. in docker 1.9, can use both ipaddress , hostname can not use hostname in docker 1.10
docker exec container1 ping -c4 172.18.0.3 --> ok docker exec container2 ping -c4 172.18.0.2 --> ok docker exec container1 ping -c4 container2 --> failed ping: bad address 'container2' docker exec container2 ping -c4 container1 --> failed ping: bad address 'container1'
how can fix problem? thank you!
it seems docker 1.10 embedded dns have trouble selinux , firewalld on fedora, rhel , centos 7. can work around disabling selinux , firewalld. hope docker team can fix issue soon!
update: docker 1.10.1 has fixed problem! works on fedora 23, centos 7 , rhel 7
Comments
Post a Comment