Yelp / dumb-init

A minimal init system for Linux containers
https://engineeringblog.yelp.com/2016/01/dumb-init-an-init-for-docker.html
MIT License
6.89k stars 345 forks source link

dumb-init fails on symbolic link (does it support those?) #255

Closed Twiggeh closed 3 years ago

Twiggeh commented 3 years ago

I was trying to add an entrypoint to my docker image, but the entrypoint is an arg variable, arising in this issue:

SO issue with docker interpolation issues, suggests to use symbolic links

The solution proposes that I would create a symbolic link and then point dumb-init at said symbolic link.

The only problem appears to be that dumb-init doesn't want to use the symbolic link and throws a "No such file or directory" despite it clearly existing: image (inside the built image)

I have tried version 1.2.2 and 1.2.5

asottile commented 3 years ago

what does ls -al /usr/bin/brig give you?

asottile commented 3 years ago

also the term is "symbolic link" by the way

Twiggeh commented 3 years ago

also the term is "symbolic link" by the way

Thanks :D

what does ls -al /usr/bin/brig give you?

ls -l /usr/bin/service shows that the symbolic link exists. Unfortunately I did not include ls -l /usr/bin/service | grep "brig" that would have shown that the file actually exists.

This doesn't appear to be an issue with dumb-init after further investigation though, because I cannot access that file in any way. It appears to be related to Alpine / something else, so I will close this issue :D