1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #8747 from SvenDowideit/lets-tell-them-more-about-exec

Add a link to some documentation about exec.
This commit is contained in:
James Turnbull 2014-10-30 07:56:55 -04:00
commit b63a254522

View file

@ -313,8 +313,9 @@ beginning user will then be forced to learn about `ENTRYPOINT` and
`--entrypoint`. `--entrypoint`.
In order to avoid a situation where commands are run without clear visibility 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 to the user, make sure your script ends with something like `exec "$@"` (see
the entrypoint completes, the script will transparently bootstrap the command [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, 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 `docker run -it mysql mysqld --some --flags` will transparently run
`mysqld --some --flags` after `ENTRYPOINT` runs `initdb`). `mysqld --some --flags` after `ENTRYPOINT` runs `initdb`).