diff --git a/docs/installation/debian.md b/docs/installation/debian.md index b5ce3586d9..154650f1c5 100644 --- a/docs/installation/debian.md +++ b/docs/installation/debian.md @@ -75,6 +75,11 @@ from the new repository: deb https://apt.dockerproject.org/repo debian-stretch main + > **Note**: Docker does not provide packages for all architectures. To install docker on + > a multi-architecture system, add an `[arch=...]` clause to the entry. Refer to the + > [Debian Multiarch wiki](https://wiki.debian.org/Multiarch/HOWTO#Setting_up_apt_sources) + > for details. + 8. Save and close the file. 9. Update the `apt` package index. diff --git a/docs/installation/ubuntulinux.md b/docs/installation/ubuntulinux.md index 0ff6fe3bd2..0e14f93897 100644 --- a/docs/installation/ubuntulinux.md +++ b/docs/installation/ubuntulinux.md @@ -83,6 +83,11 @@ packages from the new repository: deb https://apt.dockerproject.org/repo ubuntu-wily main + > **Note**: Docker does not provide packages for all architectures. To install docker on + > a multi-architecture system, add an `[arch=...]` clause to the entry. Refer to the + > [Debian Multiarch wiki](https://wiki.debian.org/Multiarch/HOWTO#Setting_up_apt_sources) + > for details. + 7. Save and close the `/etc/apt/sources.list.d/docker.list` file. 8. Update the `apt` package index. diff --git a/hack/install.sh b/hack/install.sh index 41c5b3cd50..92de5b517c 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -372,7 +372,7 @@ do_install() { set -x $sh_c "apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D" $sh_c "mkdir -p /etc/apt/sources.list.d" - $sh_c "echo deb https://apt.dockerproject.org/repo ${lsb_dist}-${dist_version} ${repo} > /etc/apt/sources.list.d/docker.list" + $sh_c "echo deb [arch=$(dpkg --print-architecture)] https://apt.dockerproject.org/repo ${lsb_dist}-${dist_version} ${repo} > /etc/apt/sources.list.d/docker.list" $sh_c 'sleep 3; apt-get update; apt-get install -y -q docker-engine' ) echo_docker_as_nonroot