"Dockerfile EXPOSE"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 5개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
;Dockerfile EXPOSE
{{소스헤더|구문}}
<source lang='dockerfile'>
EXPOSE <port> [<port>/<protocol>...]
</source>
==예시==
<source lang='dockerfile'>
EXPOSE 80
</source>
<source lang='dockerfile'>
EXPOSE 80 443
</source>
<source lang='dockerfile'>
EXPOSE 27017
</source>
<source lang='dockerfile'>
EXPOSE 80/udp
</source>
<source lang='dockerfile'>
EXPOSE 80/tcp
EXPOSE 80/udp
</source>
==같이 보기==
==같이 보기==
* [[Dockerfile]]
* [[docker run -p]]
* [[docker port]]
* [[docker port]]
* [[kubectl expose]]
* [[kubectl expose]]


==참고==
==참고==
* https://docs.docker.com/engine/reference/builder/#expose
* https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#expose
* https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#expose


[[분류: Dockerfile]]
[[분류: Dockerfile]]
[[분류: 포트]]

2019년 5월 24일 (금) 01:15 기준 최신판

1 개요[ | ]

Dockerfile EXPOSE
구문
EXPOSE <port> [<port>/<protocol>...]

2 예시[ | ]

EXPOSE 80
EXPOSE 80 443
EXPOSE 27017
EXPOSE 80/udp
EXPOSE 80/tcp
EXPOSE 80/udp

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}