Docker Community Forums

Share and learn in the Docker community.

Migration to compose 2

(Olat) #1


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
HTTP/1.1 301 Moved Permanently
Content-length: 0
Connection: close

bash-4.2$ sudo yum install which
Loaded plugins: fastestmirror, ovl [Errno 12] Timeout on (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)

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?

(Nathan Le Claire) #2

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

Want to post the output of docker-compose up -v in a for folks to take a look?

(Olat) #3

Sorry for a slow response. Here is verbose What exactly am I missing?

for comparation v1 and yum works fine