Hello, I have a problem with the link of containers. In Rancher 1.1 all was fine, but after upgrade to 1.2, the problem is that I have ping to ip of containers but not to the hostname of it.
My docker-compose is similiar to this:
db:
restart: always
image: postgres:9.4
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432"
volumes:
- /srv/labla/postgres/:/var/lib/postgresql/data/
labels:
io.rancher.scheduler.affinity:host_label: labla=true
io.rancher.scheduler.global: 'true'
net: bridge
redis:
restart: always
container_name: labla_redis
image: redis:3.2.3
volumes:
- /srv/labla/redis/:/data
labels:
io.rancher.scheduler.affinity:host_label: labla=true
io.rancher.scheduler.global: 'true'
net: bridge
web:
restart: always
image: myregistry.bla/labla
links:
- db:db
- redis:redis
ports:
- "80"
environment:
- PASSENGER_APP_ENV=production
- RAILS_ENV=production
labels:
io.rancher.scheduler.affinity:host_label: labla=true
io.rancher.scheduler.global: 'true'
net: bridge
Inside web container I try to ping to db without success. But when I ping with the ip of db, It is ok…
I am using Rancher 1.2.1.
Thank You!