Open pikrzysztof opened 3 years ago
from docker inspect logzio/jmx2graphite:
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.
docker kill
/bin/sh
java
Can we please set the cmd to exec java -cp ... or use a proper init?
exec java -cp ...
I don't have a lot of time lately. Would love help with PR on this.
from
docker inspect logzio/jmx2graphite
: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, butjava
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?