33 lines
1.4 KiB
Docker
33 lines
1.4 KiB
Docker
FROM registry.fedoraproject.org/fedora:26
|
|
|
|
ENV VERSION=0 RELEASE=6 ARCH=x86_64
|
|
LABEL com.redhat.component="docker" \
|
|
name="$FGC/docker" \
|
|
version="$VERSION" \
|
|
release="$RELEASE.$DISTTAG" \
|
|
architecture="$ARCH" \
|
|
usage="atomic install --system --system-package=no docker && systemctl start docker" \
|
|
summary="The docker daemon as a system container." \
|
|
maintainer="Giuseppe Scrivano <gscrivan@redhat.com>" \
|
|
atomic.type="system"
|
|
|
|
RUN dnf install --setopt=tsflags=nodocs -y docker container-storage-setup container-selinux cloud-utils-growpart python-docker-py docker-novolume-plugin lvm2 iptables procps-ng xz oci-register-machine \
|
|
&& rpm -V docker container-storage-setup container-selinux cloud-utils-growpart python-docker-py docker-novolume-plugin lvm2 iptables procps-ng xz oci-register-machine \
|
|
&& mkdir -p /usr/lib/modules /exports/hostfs/etc/docker \
|
|
&& dnf clean all
|
|
|
|
RUN ln -s /usr/libexec/docker/docker-runc-current /usr/bin/docker-runc
|
|
|
|
COPY README.md /
|
|
COPY shim.sh init.sh /usr/bin/
|
|
|
|
# system container
|
|
COPY set_mounts.sh /
|
|
COPY config.json.template service.template tmpfiles.template /exports/
|
|
COPY daemon.json /exports/hostfs/etc/docker/container-daemon.json
|
|
# https://github.com/rhatdan/oci-umount/issues/2
|
|
# Copy config if available
|
|
RUN (test -e /etc/oci-umount.conf && cp /etc/oci-umount.conf /exports/hostfs/etc) || true
|
|
|
|
|
|
CMD ["/usr/bin/init.sh"]
|