oci-systemd-hook icon indicating copy to clipboard operation
oci-systemd-hook copied to clipboard

Install instructions

Open drewwells opened this issue 6 years ago • 3 comments

I see mentions that some small changes are required in Docker to use this library, from a Redhat blog post mentioning this project. There's no mentions of how to integrate these in a Docker host. Are there special steps? Running this example on Ubuntu results in an error:

FROM fedora:latest
ENV container docker
RUN yum -y update && yum -y install httpd && yum clean all
RUN systemctl mask dnf-makecache.timer && systemctl enable httpd
CMD [ "/sbin/init" ]
-> % docker run -ti --stop-signal=RTMIN+3 httpd
Failed to mount tmpfs at /run: Operation not permitted
[!!!!!!] Failed to mount API filesystems, freezing.
Freezing execution.

drewwells avatar Mar 23 '18 21:03 drewwells

Based on this, it appears only projectatomic/docker can use these hooks. https://pagure.io/atomic-wg/issue/233

drewwells avatar Mar 23 '18 22:03 drewwells

Correct Upstream Docker did not accept patches to automatically run oci hooks.

rhatdan avatar Mar 26 '18 18:03 rhatdan

We should be able to get this to work with CRI-O and eventually Podman.

rhatdan avatar Mar 26 '18 18:03 rhatdan