diff --git a/docker-for-mac/networking.md b/docker-for-mac/networking.md index 5c35022b35..ab995a6f17 100644 --- a/docker-for-mac/networking.md +++ b/docker-for-mac/networking.md @@ -105,7 +105,7 @@ container to port `8000` on the host: ```bash $ docker run --publish 8000:80 --name webserver nginx -$ docker run --p 8000:80 --name webserver nginx +$ docker run -p 8000:80 --name webserver nginx ``` To expose all ports, use the `-P` flag. For example, the following command