-
Notifications
You must be signed in to change notification settings - Fork 165
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
Entrypoint in Dockerfile will be automatically overridden by "/bin/sh -c" #257
Comments
I found similar problem: mesosphere/marathon#2373 entrypoint i expect to execute was overridden by --entrypoint /bin/sh, just shown as below: |
have the same problem, any update? |
yes , I also have same problem :( |
+1 |
1 similar comment
+1 |
any progress? |
+1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Descriptions:
Entrypoint in Dockerfile will be automatically be overridden by Java slave process, but CMD in Dockerfile will not be overridden. I think this problem will block the users who want to adopt this plugin as no way to identify which executable should be run when a container is started from our images, and I tried to use Use custom docker command shell in Mesos Cloud section to work around it, but still fails, a defect has been tracking it for also year: #157
Entrypoint: /bin/bash --login -- /entrypoint.sh
Java Slave process: /bin/sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar ${MESOS_SANDBOX-.}/slave.jar -noReconnect -secret ... mesos-jenkins-do/slave-agent.jnlp
Expected (Shown by COMMAND via docker ps command):
"/bin/bash --login -- /entrypoint.sh /bin/sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar ${MESOS_SANDBOX-.}/slave.jar -noReconnect -secret 4026fda6995da3083527505a05d92cadcb5e00eb0b477f0ff357097fadd59ae7 -jnlpUrl http://jenkins.xxx.net/computer/mesos-jenkins-09a5fb6724b44ed4bf10339c6aae4f1d-mesos-jenkins-do/slave-agent.jnlp'"
But in fact (Shown by COMMAND via docker ps command, the command "/bin/bash --login -- /entrypoint.sh" in Entrypoint override):
"/bin/sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar ${MESOS_SANDBOX-.}/slave.jar -noReconnect -secret 4026fda6995da3083527505a05d92cadcb5e00eb0b477f0ff357097fadd59ae7 -jnlpUrl http://jenkins.xxx.net/computer/mesos-jenkins-09a5fb6724b44ed4bf10339c6aae4f1d-mesos-jenkins-do/slave-agent.jnlp'"
The text was updated successfully, but these errors were encountered: