3 ms·
Friendly FYI, "EXPOSE" is a no-op that is only meant as visual documentation to end-users. "The EXPOSE instruction does not actually publish the port. It fun
by gavinray 6y ago
Friendly FYI, "EXPOSE" is a no-op that is only meant as visual documentation to end-users.
"The EXPOSE instruction does not actually publish the port. It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be published."
Second paragraph:
https://docs.docker.com/engine/reference/builder/#expose https://docs.docker.com/engine/reference/builder/#expose
- jcrawfordor 6y agoI'm referring to docker-compose, where 'port' and 'expose' are container configuration options that behave differently from the Dockerfile keyword. Although the similar words with different meanings no doubt contribute to confusion.
- gavinray 6y agoAh, my mistake. That comes off pretty asinine then, apologies.