TIL ENTRYPOINT in Dockerfile is a pain in the bum

Andrew Bruce posted on January 15th, 2019

If you put ENTRYPOINT "foo" in a Dockerfile, you get an entrypoint of /bin/sh -c foo, which completely destroys any attempt to pass further arguments to the executable you specified.

You instead want ENTRYPOINT ["foo"]

What did you learn today?

Write a quick TIL post to reflect on what you've learned.

Write a post