From 8b5cf33e2f23a01637c5b4b9665c1d1213de18ea Mon Sep 17 00:00:00 2001 From: Craig Osterhout <103533812+craig-osterhout@users.noreply.github.com> Date: Fri, 12 Aug 2022 02:01:05 -0700 Subject: [PATCH] fix formatting for issue 15365 (#15368) --- language/java/run-containers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/java/run-containers.md b/language/java/run-containers.md index c746aaf57c..c368511640 100644 --- a/language/java/run-containers.md +++ b/language/java/run-containers.md @@ -37,7 +37,7 @@ As you can see, our `curl` command failed because the connection to our server w To stop the container, press `ctrl-c`. This will return you to the terminal prompt. -To publish a port for our container, we’ll use the `--publish flag` (`-p` for short) on the `docker run` command. The format of the `--publish` command is `[host port]:[container port]`. So, if we wanted to expose port 8000 inside the container to port 8080 outside the container, we would pass `8080:8000` to the `--publish` flag. +To publish a port for our container, we’ll use the `--publish` flag (`-p` for short) on the `docker run` command. The format of the `--publish` command is `[host port]:[container port]`. So, if we wanted to expose port 8000 inside the container to port 8080 outside the container, we would pass `8080:8000` to the `--publish` flag. Start the container and expose port 8080 to port 8080 on the host.