We use a wget command inside a docker-compose.yml file (This was working in v0.63)
docker-compose.yml ( v1.0.0 )
command: bash -c “cd /path && wget http://downloadurl/filename”
Now the command hangs
Logfile
31.3.2016 14:50:33HTTP request sent, awaiting response… 401 Authorization Required
31.3.2016 14:50:33Reusing existing connection to nexenta.mic.co.at:80.
31.3.2016 14:50:33HTTP request sent, awaiting response… 200 OK
31.3.2016 14:50:33Length: 116168765 (111M) [application/x-gzip]
31.3.2016 14:50:33Saving to: 'MICDOCK_template.tar.gz’
31.3.2016 14:50:33
Can you post your full docker-compose.yml and give some other details about your setup? wget
works fine in other containers deployed to Rancher, so the issue must be somewhere in the details here.
My docker-compose.yml
Test:
image: docker.mic.co.at/oraclelinux:6.6
tty: true
command: bash -c "curl -O http://mirror.internode.on.net/pub/test/10meg.test1 && tail -f /var/log/messages"
- Test with rancher 0.63 -> no problem
- Test with rancher 1.0 -> curl hangs
- connect to the container with ssh and execute curl -> no problem
I found a workaround for my problem ( use curl with a proxy )
Test:
image: docker.mic.co.at/oraclelinux:6.6
tty: true
command: bash -c "curl -O -x http://172.29.249.217:8080 http://mirror.internode.on.net/pub/test/10meg.test1 && tail -f /var/log/messages"