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

Launching tasks with image defined entrypoint #100

Closed
keis opened this issue Jul 20, 2016 · 1 comment · Fixed by #146
Closed

Launching tasks with image defined entrypoint #100

keis opened this issue Jul 20, 2016 · 1 comment · Fixed by #146

Comments

@keis
Copy link
Collaborator

keis commented Jul 20, 2016

By default mesos will prefix the command with /bin/sh -c and ignore the entrypoint specified in the image. It's possible to tune this in the CommandInfo

I suggest we follow marathons convention of differentiating between the two modes by the field used cmd or args. https://mesosphere.github.io/marathon/docs/native-docker.html (Command vs Args)

@marcusolsson
Copy link
Contributor

marcusolsson commented Sep 6, 2016

Just to clarify, given that

ENTRYPOINT ["echo"]
CMD ["hello"]

Example 1:

{
    "cmd": "ping"
}

should result in: sh -c ping

Example 2:

{
    "args": ["ping"]
}

should result in: echo ping

@Mongey Mongey mentioned this issue Sep 28, 2016
@keis keis closed this as completed in #146 Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants