I face a really weird case with Docker Compose 1.8 on RHEL 7 when containers can resolve their names but cannot access (ping) each other IP addresses.
YAML file looks like the one below:
version: ‘2’
services:
s1:
image: s1:latest
hostname: "s1"
s2:
image: s2:latest
hostname: “s2”
networks:
default:
ipam:
config:
- subnet: 10.29.0.0/16
ip_range: 10.29.5.0/24
s1 cannot ping s2 (IP address gets resolved but ping hangs).
Exactly same docker-compose configuration works in other environments.
I turned off the firewalld and iptables on the host machine but it doesn’t help. Any pointer is appreciated.