forked from mesosphere-backup/mesos-slave-dind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (32 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM mesosphere/mesos-slave:1.4.1
MAINTAINER Mesosphere <[email protected]>
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qqy \
apt-transport-https \
ca-certificates \
curl \
lxc \
iptables \
ipcalc \
linux-image-extra-virtual \
software-properties-common \
dmsetup \
&& \
apt-get clean
# Install specific Docker version
ENV DOCKER_VERSION 17.05.0~ce-0~ubuntu-xenial
RUN curl -fsSL 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | apt-key add - && \
add-apt-repository \
"deb https://packages.docker.com/1.12/apt/repo/ \
ubuntu-$(lsb_release -cs) \
main" \
&& \
apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qqy \
docker-engine=${DOCKER_VERSION} \
&& \
apt-get clean
ENV WRAPPER_VERSION 0.4.0
COPY ./wrapdocker /usr/local/bin/
ENTRYPOINT ["wrapdocker"]
CMD ["mesos-slave"]