Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong entrypoint/cmd in Dockerfile #88

Open
pikrzysztof opened this issue Mar 10, 2021 · 1 comment
Open

wrong entrypoint/cmd in Dockerfile #88

pikrzysztof opened this issue Mar 10, 2021 · 1 comment
Labels

Comments

@pikrzysztof
Copy link

from docker inspect logzio/jmx2graphite:

            "Cmd": [
                "/bin/sh",
                "-c",
                "java -cp jmx2graphite.jar:slf4j-simple-1.7.25.jar io.logz.jmx2graphite.Jmx2GraphiteJolokia application.conf"
            ],

this results in /bin/sh having pid1 in the container and java pid >1.

on docker kill the signal gets passed to /bin/sh which exits, but java has no clue what happened and gets surprised with a SIGKILL 60 seconds later.

Can we please set the cmd to exec java -cp ... or use a proper init?

@asafm
Copy link
Contributor

asafm commented Apr 8, 2021

I don't have a lot of time lately. Would love help with PR on this.

@asafm asafm added the bug label Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants