Skip to content

Commit

Permalink
docs: improved self-managed Docker documentation example (#1753)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Taylor <[email protected]>
  • Loading branch information
1 parent 33281ac commit e2a112c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/docs/deploy/core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,17 @@ We also provide container images on [Docker Hub](https://hub.docker.com/r/pomeri
Example usage:

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

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.
Expand Down

0 comments on commit e2a112c

Please sign in to comment.