Skip to content

Commit 4950aa4

Browse files
authored
docs: improved self-managed Docker documentation example (#1751)
1 parent 9dec0a5 commit 4950aa4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/docs/deploy/core.mdx

+10-1
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,17 @@ We also provide container images on [Docker Hub](https://hub.docker.com/r/pomeri
102102
Example usage:
103103

104104
```bash
105+
# config.yaml is your Pomerium configuration.
106+
# See https://www.pomerium.com/docs/deploy/core#configuration
107+
#
108+
# Note: The external port (8443) can be changed without affecting your route configuration
109+
# as long as your routes don't specify explicit ports. See
110+
# https://pomerium.com/docs/reference/routes/from#port-matching-behavior for more information
105111
docker pull pomerium/pomerium:latest
106-
docker run --rm -it -p 443:443 pomerium/pomerium:latest --version
112+
docker run --rm -it \
113+
-p 8443:443 \
114+
-v $(pwd)/config.yaml:/pomerium/config.yaml \
115+
pomerium/pomerium:latest
107116
```
108117

109118
If you plan to run on port 443 in a rootless environment, you may need extra [capabilities](https://linux-audit.com/linux-capabilities-hardening-linux-binaries-by-removing-setuid/) or choose a non-privileged port.

0 commit comments

Comments
 (0)