Migration to compose 2

Hello,

using Docker version 1.11.2, build b9f10c9, docker-compose==1.7.1 build 6c29830 I have been trying to migrate set of docker containers managed by compose and use version 2. After updating services section and links, it turner out that I cannot use yum install within a newly running container because yum times out, although curl and ping works.

$ docker exec -it develop_nginx_1 bash
bash-4.2$ curl -I https://docker.com
HTTP/1.1 301 Moved Permanently
Content-length: 0
Location: https://www.docker.com/
Connection: close

bash-4.2$ sudo yum install which
Loaded plugins: fastestmirror, ovl
http://mirrors.coreix.net/centos/7.2.1511/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.coreix.net/centos/7.2.1511/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.

I am sure this is not repo timing out, as in the same time installing from host works as expected.

Docker is fairly new to me and not really sure what is wrong.

compose1.yml (works fine) https://github.com/aleksandra-tarkowska/devspace/blob/nginx_redirect/docker-compose.yml
compose2.yml https://github.com/aleksandra-tarkowska/devspace/blob/compose2/docker-compose.yml

Note: for comparison I run 2 OpenStack VMs fully managed by the same ansible playbook to make installation of docker, compose and deployment exactly the same.

Anyone could help please?
Ola

EDIT: Docker version looks OK actually, I can’t git today apparently.

Want to post the output of docker-compose up -v in a https://gist.github.com for folks to take a look?

Sorry for a slow response. Here is verbose https://gist.github.com/aleksandra-tarkowska/f691a635f91b9adae7795081bc8f6363#file-compose2-L17. What exactly am I missing?

for comparation v1 https://gist.github.com/aleksandra-tarkowska/74e0d53db1e66c5d03ecb50599395378 and yum works fine