From 6671f362c652d05b7571e17fe11e0e2dc878ebe2 Mon Sep 17 00:00:00 2001 From: Andy Rothfusz Date: Thu, 5 Dec 2013 18:08:56 -0800 Subject: [PATCH] Add debian mirrors. Fixes #3045. Upstream-commit: 58b75f8f29b5fff388ec3d8d84249e122462c137 Component: engine --- .../docs/sources/installation/ubuntulinux.rst | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/components/engine/docs/sources/installation/ubuntulinux.rst b/components/engine/docs/sources/installation/ubuntulinux.rst index 93a1b28e2a..73e7c3a80e 100644 --- a/components/engine/docs/sources/installation/ubuntulinux.rst +++ b/components/engine/docs/sources/installation/ubuntulinux.rst @@ -63,7 +63,10 @@ Installation These instructions have changed for 0.6. If you are upgrading from an earlier version, you will need to follow them again. -Docker is available as a Debian package, which makes installation easy. +Docker is available as a Debian package, which makes installation +easy. **See the :ref:`installmirrors` section below if you are not in +the United States.** Other sources of the Debian packages may be +faster for you to install. First add the Docker repository key to your local keychain. You can use the ``apt-key`` command to check the fingerprint matches: ``36A1 D786 9245 C895 0F96 @@ -199,3 +202,25 @@ incoming connections on the Docker port (default 4243): sudo ufw allow 4243/tcp +.. _installmirrors: + +Mirrors +^^^^^^^ + +You should ``ping get.docker.io`` and compare the latency to the +following mirrors, and pick whichever one is best for you. + +Yandex +------ + +`Yandex `_ in Russia is mirroring the Docker Debian +packages, updating every 6 hours. Substitute +``http://mirror.yandex.ru/mirrors/docker/`` for +``http://get.docker.io/ubuntu`` in the instructions above. For example: + +.. code-block:: bash + + sudo sh -c "echo deb http://mirror.yandex.ru/mirrors/docker/ docker main\ + > /etc/apt/sources.list.d/docker.list" + sudo apt-get update + sudo apt-get install lxc-docker