Skip to content

Commit

Permalink
Merge pull request moby#8747 from SvenDowideit/lets-tell-them-more-ab…
Browse files Browse the repository at this point in the history
…out-exec

Add a link to some documentation about exec.
  • Loading branch information
jamtur01 committed Oct 30, 2014
2 parents 74564e5 + 7f1ea71 commit b63a254
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/sources/articles/dockerfile_best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ beginning user will then be forced to learn about `ENTRYPOINT` and
`--entrypoint`.

In order to avoid a situation where commands are run without clear visibility
to the user, make sure your script ends with something like `exec "$@"`. After
the entrypoint completes, the script will transparently bootstrap the command
to the user, make sure your script ends with something like `exec "$@"` (see
[the exec builtin command](http://wiki.bash-hackers.org/commands/builtin/exec)).
After the entrypoint completes, the script will transparently bootstrap the command
invoked by the user, making what has been run clear to the user (for example,
`docker run -it mysql mysqld --some --flags` will transparently run
`mysqld --some --flags` after `ENTRYPOINT` runs `initdb`).
Expand Down

0 comments on commit b63a254

Please sign in to comment.