From a4b8d13c02a16e51ed5216fc1ff81aa93ef52825 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 23 Sep 2026 18:27:25 +0000 Subject: [PATCH] Enhance with yaml --- Running-docker-container-with-non-root-user.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Running-docker-container-with-non-root-user.md b/Running-docker-container-with-non-root-user.md index e7d4237..715e585 100644 --- a/Running-docker-container-with-non-root-user.md +++ b/Running-docker-container-with-non-root-user.md @@ -29,7 +29,8 @@ docker run -d \ Notice that the port mapping (`-p 80:1024`) reflects the `ROCKET_PORT` setting. Another way may be CAP_NET_BIND_SERVICE, which allows to bind to ports below 1024 as non-root user. - +```yaml cap_add: - CAP_NET_BIND_SERVICE user: nobody +``` \ No newline at end of file