We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ba7f3e + f4dc5b2 commit c9fa423Copy full SHA for c9fa423
beginner/chapters/webapps.md
@@ -459,7 +459,11 @@ Here's a quick summary of the few basic commands we used in our Dockerfile.
459
CMD ["/bin/bash", "echo", "Hello World"]
460
```
461
462
-* `EXPOSE` opens ports in your image to allow communication to the outside world when it runs in a container.
+* `EXPOSE` creates a hint for users of an image which ports provide services. It is included in the information which
463
+ can be retrieved via `$ docker inspect <container-id>`.
464
+
465
+>**Note:** The `EXPOSE` command does not actually make any ports accessible to the host! Instead, this requires
466
+publishing ports by means of the `-p` flag when using `$ docker run`.
467
468
* `PUSH` pushes your image to Docker Hub, or alternately to a [private registry](TODO: add URL)
469
0 commit comments