回答編集履歴
2
メリットの追加
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
exposeは必要ありません。
|
2
2
|
|
3
|
-
公式のリファレンスにかかれている通りです。
|
3
|
+
公式のリファレンスにかかれている通りです。ただし、このドキュメントにもあるように、明示することでメリットもあるため、使う人は多いと思います。
|
4
4
|
|
5
5
|
|
6
6
|
|
1
リンク修正
test
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
https://docs.docker.com/engine/reference/builder/#
|
7
|
+
[https://docs.docker.com/engine/reference/builder/#expose
|
8
8
|
|
9
|
-
|
9
|
+
](https://docs.docker.com/engine/reference/builder/#expose)
|
10
10
|
|
11
11
|
> 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. To actually publish the port when running the container, use the -p flag on docker run to publish and map one or more ports, or the -P flag to publish all exposed ports and map them to high-order ports.
|
12
12
|
|