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

Entrypoint in Dockerfile will be automatically overridden by "/bin/sh -c" #257

Closed
xiajidexue opened this issue Aug 26, 2016 · 8 comments
Closed
Labels

Comments

@xiajidexue
Copy link

xiajidexue commented Aug 26, 2016

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'"

@xiajidexue xiajidexue changed the title Entrypoint in Dockerfile will be automatically override by the Java slave process Entrypoint in Dockerfile will be automatically overridden by the Java slave process Aug 26, 2016
@xiajidexue
Copy link
Author

xiajidexue commented Aug 28, 2016

I found similar problem: mesosphere/marathon#2373

entrypoint i expect to execute was overridden by --entrypoint /bin/sh, just shown as below:
--entrypoint=/docker-entrypoint.sh --entrypoint /bin/sh

@xiajidexue xiajidexue changed the title Entrypoint in Dockerfile will be automatically overridden by the Java slave process Entrypoint in Dockerfile will be automatically overridden by "/bin/sh -c" Aug 28, 2016
@fsfshijm
Copy link

have the same problem, any update?

@vimalprakashts
Copy link

yes , I also have same problem :(

@ac-hibbert
Copy link

+1

1 similar comment
@gfrntz
Copy link

gfrntz commented Oct 24, 2017

+1

@mainred
Copy link

mainred commented Jul 11, 2018

any progress?

@zhangxinlong633
Copy link

+1

@stale
Copy link

stale bot commented Nov 13, 2019

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.

@stale stale bot added the stale label Nov 13, 2019
@stale stale bot closed this as completed Nov 20, 2019
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

7 participants