From 944183767531b100dec44ba676bbe7e904435d19 Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Tue, 10 Sep 2024 12:38:02 +0300 Subject: [PATCH] Fix `docker run` port publishing options in README `-p N` publishes `N` port from container to ephemeral port on the host machine (chosen by Docker), to publish container port to the same port on the host `-p N:N` syntax should be used. See https://docs.docker.com/get-started/docker-concepts/running-containers/publishing-ports/ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b44e9827..fd20b051 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ if DEBUG: There is a Docker image available [on Docker Hub](https://hub.docker.com/r/sj26/mailcatcher): ``` -$ docker run -p 1080 -p 1025 sj26/mailcatcher +$ docker run -p 1080:1080 -p 1025:1025 sj26/mailcatcher Unable to find image 'sj26/mailcatcher:latest' locally latest: Pulling from sj26/mailcatcher 8c6d1654570f: Already exists