mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #4764 from SvenDowideit/use-docker-tgz
Use docker tgz file to download on OSX
This commit is contained in:
commit
7fddec4a65
2 changed files with 9 additions and 5 deletions
|
@ -58,6 +58,9 @@ Get the docker binary:
|
|||
wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O docker
|
||||
chmod +x docker
|
||||
|
||||
.. note::
|
||||
If you have trouble downloading the binary, you can also get the smaller
|
||||
compressed release file: https://get.docker.io/builds/Linux/x86_64/docker-latest.tgz
|
||||
|
||||
Run the docker daemon
|
||||
---------------------
|
||||
|
|
|
@ -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 ${TMPDIR:-/tmp}/dockerdl.XXXXXXX) && \
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue