docker/Dockerfile
yuqi-zhang b61c9083df Minor fixes for f25
Change "name" label to be the correct format, and remove a rhel
plugin.

Signed-off-by: Yu Qi Zhang <jzehrarnyg@gmail.com>
2017-07-10 10:58:04 -04:00

30 lines
1.3 KiB
Docker

FROM registry.fedoraproject.org/fedora:25
ENV VERSION=0 RELEASE=5 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-selinux cloud-utils-growpart python-docker-py docker-novolume-plugin lvm2 iptables procps-ng xz oci-register-machine \
&& rpm -V docker container-selinux cloud-utils-growpart python-docker-py docker-novolume-plugin lvm2 iptables procps-ng xz oci-register-machine \
&& mkdir -p /usr/lib/modules && 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
RUN (test -e /etc/oci-umount.conf && cp /etc/oci-umount.conf /exports/hostfs/etc) || true
CMD ["/usr/bin/init.sh"]