docker_practice/image/dockerfile/expose.md

8 lines
853 B
Go
Raw Normal View History

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