diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index b7ab4af084..715557e047 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -362,6 +362,7 @@ COPY apt_preferences.{{ base_distro }} /etc/apt/preferences {% set remote_apt_keys = [ 'http://obs.linaro.org/ERP:/18.06/Debian_9/Release.key', 'https://bintray.com/user/downloadSubjectPublicKey?username=bintray', + 'https://download.docker.com/linux/debian/gpg' ] %} {% set base_apt_packages = base_apt_packages + ['sudo',] diff --git a/docker/base/sources.list.debian b/docker/base/sources.list.debian index b663bc00d7..1f184edd93 100644 --- a/docker/base/sources.list.debian +++ b/docker/base/sources.list.debian @@ -15,3 +15,6 @@ deb [arch=arm64] https://dl.bintray.com/fg2it/deb-arm64/ stretch main # elasticsearch (arch:all), logstash (arch:all), kibana (arch:amd64) deb [arch=amd64] https://artifacts.elastic.co/packages/5.x/apt stable main + +# main docker repo +deb https://download.docker.com/linux/debian stretch stable diff --git a/docker/dind/Dockerfile.j2 b/docker/dind/Dockerfile.j2 index 9e60275897..9f70211a10 100644 --- a/docker/dind/Dockerfile.j2 +++ b/docker/dind/Dockerfile.j2 @@ -15,10 +15,19 @@ RUN /bin/true {% elif base_distro in ['debian', 'ubuntu'] %} {% set dind_packages = [ 'btrfs-tools', - 'docker.io', 'openssh-server' ] %} + {% if base_distro in ['debian'] %} + {% set dind_packages = dind_packages + [ + 'docker-ce' + ] %} + {% else %} + {% set dind_packages = dind_packages + [ + 'docker.io' + ] %} + {% endif %} + {% if install_type == 'binary' %} {% set dind_packages = dind_packages + [ 'python-setuptools'