Skip to content

Commit 0982f4e

Browse files
authored
Merge pull request #27 from j7an/limit-runtime-privilege
Add alternative to `--privileged` flag in README
2 parents 2d0885c + 01ef2ae commit 0982f4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ docker run -d --restart=always -v /var/run/docker.sock:/var/run/docker.sock:ro -
6464

6565
The flags `--privileged` and `--net=host` are necessary because docker-ipv6nat manages the hosts IPv6 firewall using ip6tables.
6666

67+
To limit runtime privileges as a security precaution, the `--privileged` flag can be replaced with `--cap-add=NET_ADMIN --cap-add=SYS_MODULE`.
68+
6769
Alternatively, you can download the latest release from the [release page](https://github.com/robbertkl/docker-ipv6nat/releases) and run it directly on your host.
6870
See `docker-ipv6nat --help` for usage flags.
6971

0 commit comments

Comments
 (0)