-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (47 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
56 lines (47 loc) · 1.3 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM cubedhost/centos7-node:node16
ENV DOCKER_CHANNEL stable
ENV DOCKER_VERSION 18.06.1-ce
# Docker deps
RUN set -ex; \
yum -y install \
btrfs-progs \
e2fsprogs \
e2fsprogs-extra \
iptables \
xfsprogs \
xz \
ca-certificates \
curl \
tar \
libressl \
# Additional deps
rsync \
wget \
which \
iproute
RUN set -ex; \
export DOCKER_ARCH=$(arch); \
curl -fL -o docker.tgz "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/${DOCKER_ARCH}/docker-${DOCKER_VERSION}.tgz" && \
tar xvf docker.tgz \
--strip-components 1 \
--directory /usr/local/bin/ && \
rm docker.tgz; \
dockerd -v; \
docker -v
# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box
RUN set -ex \
&& groupadd dockremap \
&& useradd -g dockremap dockremap \
&& echo 'dockremap:165536:65536' >> /etc/subuid \
&& echo 'dockremap:165536:65536' >> /etc/subgid
ENV DIND_COMMIT 3b5fac462d21ca164b3778647420016315289034
RUN set -ex; \
wget -O /usr/local/bin/dind "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" && \
chmod +x /usr/local/bin/dind
COPY dockerd-entrypoint.sh /usr/local/bin/
RUN set -ex ;\
chmod +x /usr/local/bin/dockerd-entrypoint.sh
VOLUME /var/lib/docker
EXPOSE 2375
ENTRYPOINT ["dockerd-entrypoint.sh"]
CMD []