From b85d87b8ab407ac6b6bc694ac87f8ef3244e6eeb Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Mon, 26 Feb 2018 15:27:11 +0900 Subject: [PATCH] docs: mention sctp Signed-off-by: Akihiro Suda --- docs/reference/commandline/run.md | 8 ++++---- docs/reference/commandline/service_create.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md index 3188e7ab6f..4ec793a217 100644 --- a/docs/reference/commandline/run.md +++ b/docs/reference/commandline/run.md @@ -343,12 +343,12 @@ $ docker run -t -i --mount type=bind,src=/data,dst=/data busybox sh ### Publish or expose port (-p, --expose) ```bash -$ docker run -p 127.0.0.1:80:8080 ubuntu bash +$ docker run -p 127.0.0.1:80:8080/tcp ubuntu bash ``` -This binds port `8080` of the container to port `80` on `127.0.0.1` of the host -machine. The [Docker User -Guide](https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/) +This binds port `8080` of the container to TCP port `80` on `127.0.0.1` of the host +machine. You can also specify `udp` and `sctp` ports. +The [Docker User Guide](https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/) explains in detail how to manipulate ports in Docker. ```bash diff --git a/docs/reference/commandline/service_create.md b/docs/reference/commandline/service_create.md index 2eeae5d13e..cdda1373ae 100644 --- a/docs/reference/commandline/service_create.md +++ b/docs/reference/commandline/service_create.md @@ -813,7 +813,7 @@ The options you can specify are: --publish 8080:80/tcp --publish published=8080,target=80,protocol=tcp

- The protocol to use, either tcp or udp Defaults to + The protocol to use, tcp , udp, or sctp. Defaults to tcp. To bind a port for both protocols, specify the -p or --publish flag twice.