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 devspace/docker-compose.yml at compose2 · atarkowska/devspace · GitHub
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