mirror of
https://github.com/luzifer-docker/jenkins.git
synced 2024-11-09 17:10:01 +00:00
Install lxc-docker instad of old ubuntu docker
This commit is contained in:
parent
17102473ba
commit
e4088ffaf5
1 changed files with 9 additions and 1 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,4 +1,12 @@
|
|||
FROM jenkins
|
||||
USER root
|
||||
RUN apt-get install -y docker.io
|
||||
|
||||
RUN bash -c "if ! [ -e /usr/lib/apt/methods/https ]; then apt-get update && apt-get install apt-transport-https; fi"
|
||||
|
||||
RUN \
|
||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 && \
|
||||
sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" && \
|
||||
apt-get update && apt-get install -y lxc-docker && \
|
||||
rm /etc/apt/sources.list.d/docker.list
|
||||
|
||||
USER jenkins
|
||||
|
|
Loading…
Reference in a new issue