소스 검색

Doc update to clarify EXPOSE vs -p functionality.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell 10 년 전
부모
커밋
5730abc167
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      docs/sources/reference/builder.md

+ 4 - 1
docs/sources/reference/builder.md

@@ -268,7 +268,10 @@ default specified in `CMD`.
 The `EXPOSE` instructions informs Docker that the container will listen on the
 The `EXPOSE` instructions informs Docker that the container will listen on the
 specified network ports at runtime. Docker uses this information to interconnect
 specified network ports at runtime. Docker uses this information to interconnect
 containers using links (see the [Docker User
 containers using links (see the [Docker User
-Guide](/userguide/dockerlinks)).
+Guide](/userguide/dockerlinks)). Note that `EXPOSE` only works for
+inter-container links. It doesn't make ports accessible from the host. To
+expose ports to the host, at runtime, 
+[use the `-p` flag](/userguide/dockerlinks).
 
 
 ## ENV
 ## ENV