-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile.dind
41 lines (36 loc) · 930 Bytes
/
Dockerfile.dind
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
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
ARG REGISTRY=msyea
ARG TAG=latest
FROM ${REGISTRY}/ubuntu-docker:${TAG}
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN set -eux; \
apt-get update && \
apt-get -y install \
btrfs-progs \
e2fsprogs \
iptables \
openssl \
uidmap \
xfsprogs \
xz-utils \
pigz \
wget \
iproute2 \
kmod
# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box
RUN set -eux; \
addgroup --system dockremap; \
adduser --system --ingroup dockremap dockremap; \
echo 'dockremap:165536:65536' >> /etc/subuid; \
echo 'dockremap:165536:65536' >> /etc/subgid
COPY dind /usr/local/bin/
COPY dockerd-entrypoint.sh /usr/local/bin/
VOLUME /var/lib/docker
EXPOSE 2375 2376
ENTRYPOINT ["dockerd-entrypoint.sh"]
CMD []