question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENTRYPOINT vs CMD

See original GitHub issue

Shouldn’t dumb-init be used as ENTRYPOINT instead of CMD?

As I understand, default entrypoint for docker container is /bin/sh -c. If you prefix your app myapp with dumb-init in CMD, what would be actually ran is sh -c "dumb-init myapp", so PID1 would be still sh -c, not dumb-init.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bukzorcommented, Jan 7, 2016

We’ll update the README to reflect this.

–phone is hard. On Jan 6, 2016 11:29 PM, “RDX” notifications@github.com wrote:

I’m using it as the ENTRYPOINT and liking it much better. Because I usually override the command in docker-compose.yml for development, and remembering to add dumb-init everywhere is cumbersome.

— Reply to this email directly or view it on GitHub https://github.com/Yelp/dumb-init/issues/43#issuecomment-169585617.

0reactions
chriskuehlcommented, Jul 26, 2016

Sorry for the slow action on this, I just opened #103.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker CMD vs ENTRYPOINT: What's The Difference & How ...
In Dockerfiles, an ENTRYPOINT instruction is used to set executables that will always run when the container is initiated. Unlike CMD commands, ...
Read more >
What is the difference between CMD and ENTRYPOINT in a ...
The ENTRYPOINT specifies a command that will always be executed when the container starts. The CMD specifies arguments that will be fed to...
Read more >
Docker - CMD vs ENTRYPOINT - Atatus
It is used to set executables that will run only when the container is initiated. ENTRYPOINT commands cannot be overridden or ignored even...
Read more >
Docker CMD VS Entrypoint commands: What's the difference?
Docker Entrypoint vs CMD: Solving the Dilemma ... In short, CMD defines default commands and/or parameters for a container. CMD is an instruction ......
Read more >
What is the difference between CMD and ... - Tutorialspoint
The ENTRYPOINT instruction looks almost similar to the CMD instruction. However, the main highlighting difference between them is that it will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found