From dc7fefc16bfcc4e6d0ccb30233e50b0ab3d172f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Thu, 3 Apr 2014 13:50:19 -0700 Subject: [PATCH] Use https://get.docker.io/ubuntu consistently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The install script (on https://get.docker.io/) installs an APT sources.list entry referencing an HTTPS repository, and takes care of installing the apt-transport-https package. However, the Debian/Ubuntu specific installation script (on https://get.docker.io/ubuntu) used an HTTPS repository but without installing that package, causing the installation to fail on some platforms. This will use HTTPS everywhere, and updates the documentation accordingly. Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni (github: jpetazzo) Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni (github: jpetazzo) --- docs/sources/installation/ubuntulinux.rst | 15 +++++++++++++-- hack/release.sh | 5 +++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/sources/installation/ubuntulinux.rst b/docs/sources/installation/ubuntulinux.rst index 44dba6b97e..51f303e88a 100644 --- a/docs/sources/installation/ubuntulinux.rst +++ b/docs/sources/installation/ubuntulinux.rst @@ -68,7 +68,18 @@ 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. +First, check that your APT system can deal with ``https`` URLs: +the file ``/usr/lib/apt/methods/https`` should exist. If it doesn't, +you need to install the package ``apt-transport-https``. + +.. code-block:: bash + + [ -e /usr/lib/apt/methods/https ] || { + apt-get update + apt-get install apt-transport-https + } + +Then, add the Docker repository key to your local keychain. .. code-block:: bash @@ -82,7 +93,7 @@ continue installation.* .. code-block:: bash - sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ + sudo sh -c "echo deb https://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list" sudo apt-get update sudo apt-get install lxc-docker diff --git a/hack/release.sh b/hack/release.sh index 6f9df8c7e6..84e1c42383 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -273,6 +273,11 @@ EOF # Upload repo s3cmd --acl-public sync $APTDIR/ s3://$BUCKET/ubuntu/ cat < /etc/apt/sources.list.d/docker.list # Then import the repository key