Hide Forgot
Description of problem: I have a container running systemd inside, but before starting the systemd I'm running shell script, which prepares the environment, set up db, etc.. and in the end, it runs: exec /usr/sbin/init In this case, the oci-systemd-hook doesn't recognize the systemd inside of the container, because the CMD in Dockerfile is: CMD [ "/docker-cmd.sh" ] Version-Release number of selected component (if applicable): oci-systemd-hook-0.1.4-1.fc24.x86_64
If you change the name of your script to /init, I think it will work. oci-systemd-hook is looking for executables named init or systemd
Thanks, renaming shell script to /init worked.