git.iko.soy/typeable/nixpkgs
on master help sign in
dockerTools.pullImage: change the docker deamon readiness mechanism

To wait for the docker deamon, curl requests are sent. However, if a http proxy is set, it will respond instead of the docker daemon. To avoid this, we send docker ps command instead of curl command.

commit132e7907355987f717a4fe6e1ca3d8f79e7987c3 authorAntoine Eiche <lewo@abesis.fr> dateMon 4 Sep 2017, 10:52 (9 years ago) parent65e6a7e
1 file changed+1−1
pkgs/build-support/docker/pull.sh+1−1
pkgs/build-support/docker/pull.sh+1−1
@@ -25,7 +25,7 @@ done
2525# run docker daemon
2626dockerd -H tcp://127.0.0.1:5555 -H unix:///var/run/docker.sock &
2727
28−until $(curl --output /dev/null --silent --connect-timeout 2 http://127.0.0.1:5555); do
28+until docker ps 2>/dev/null; do
2929 printf '.'
3030 sleep 1
3131done