소스 검색

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

Add a link to some documentation about exec.
James Turnbull 10 년 전
부모
커밋
b63a254522
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      docs/sources/articles/dockerfile_best-practices.md

+ 3 - 2
docs/sources/articles/dockerfile_best-practices.md

@@ -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`).