docker_practice/image/dockerfile/expose.md

8 lines
851 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# EXPOSE
`EXPOSE <端口1> [<端口2>...]`
`EXPOSE` Dockerfile 使便使 `docker run -P` `EXPOSE`
`EXPOSE` 使 `-p <宿主端口>:<容器端口>` `-p`宿访 `EXPOSE` 使宿