mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-07 06:22:03 +00:00
Use https://get.docker.io/ubuntu consistently
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 <jerome@docker.com> (github: jpetazzo) Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni <jerome@docker.com> (github: jpetazzo)
This commit is contained in:
@@ -273,6 +273,11 @@ EOF
|
||||
# Upload repo
|
||||
s3cmd --acl-public sync $APTDIR/ s3://$BUCKET/ubuntu/
|
||||
cat <<EOF | write_to_s3 s3://$BUCKET/ubuntu/index
|
||||
# Check that HTTPS transport is available to APT
|
||||
if [ ! -e /usr/lib/apt/methods/https ]; then
|
||||
apt-get update
|
||||
apt-get install -y apt-transport-https
|
||||
fi
|
||||
# Add the repository to your APT sources
|
||||
echo deb $(s3_url)/ubuntu docker main > /etc/apt/sources.list.d/docker.list
|
||||
# Then import the repository key
|
||||
|
||||
Reference in New Issue
Block a user