From dc7241d69b0af3d83d04837cdc3632bb66761a17 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Wed, 19 Mar 2014 14:12:47 +1000 Subject: [PATCH] use this horrible complex bit of shell to make sure that curl doesn't hand the poor user a broken docker client Docker-DCO-1.1-Signed-off-by: Sven Dowideit (github: SvenDowideit) Upstream-commit: 92194f613e37aeb8a387920c3bee42480da0d2ac Component: engine --- components/engine/docs/sources/installation/mac.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/engine/docs/sources/installation/mac.rst b/components/engine/docs/sources/installation/mac.rst index 5139324d0b..f4c771cf9f 100644 --- a/components/engine/docs/sources/installation/mac.rst +++ b/components/engine/docs/sources/installation/mac.rst @@ -65,11 +65,12 @@ Run the following commands to get it downloaded and set up: .. code-block:: bash - # Get the file - curl -o docker https://get.docker.io/builds/Darwin/x86_64/docker-latest - - # Mark it executable - chmod +x docker + # Get the docker client file + DIR=$(mktemp -d) && \ + curl -f -o $DIR/ld.tgz https://get.docker.io/builds/Darwin/x86_64/docker-latest.tgz && \ + gunzip $DIR/ld.tgz && \ + tar xvf $DIR/ld.tar -C $DIR/ && \ + cp $DIR/usr/local/bin/docker ./docker # Set the environment variable for the docker daemon export DOCKER_HOST=tcp://127.0.0.1:4243