Install docker-ce

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-04-11 14:58:34 +02:00
parent d22d703d80
commit 5af84937de
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -3,11 +3,11 @@ USER root
RUN bash -c "if ! [ -e /usr/lib/apt/methods/https ]; then apt-get update && apt-get install -y apt-transport-https; fi" RUN bash -c "if ! [ -e /usr/lib/apt/methods/https ]; then apt-get update && apt-get install -y apt-transport-https; fi"
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 \ RUN set -ex \
&& sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" \ && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 \
&& apt-get update && apt-get install -y lxc-docker \ && sh -c "echo deb [arch=amd64] https://download.docker.com/linux/debian jessie stable > /etc/apt/sources.list.d/docker.list" \
&& apt-get update && apt-get install -y docker-ce \
&& apt-get install -y sudo \ && apt-get install -y sudo \
&& rm /etc/apt/sources.list.d/docker.list \
&& echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER jenkins USER jenkins