Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



I'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.


Ah, my mistake. That comes off pretty asinine then, apologies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: