Jamesits / docker-ripe-atlas

This is the RIPE Atlas software probe packaged as a Docker image.
https://hub.docker.com/r/jamesits/ripe-atlas
GNU General Public License v3.0
151 stars 22 forks source link

Allow custom UID/GID #22

Closed KusakabeShi closed 1 year ago

KusakabeShi commented 1 year ago

Allowing users to run the software probe with custom UID/GID

Usage: Add ATLAS_UID and ATLAS_GID environment variable to switch the atlas process uid/gid

Example:

docker run --detach --restart=always \
    --log-driver json-file --log-opt max-size=10m \
    --cpus=1 --memory=64m --memory-reservation=64m \
    --cap-drop=ALL --cap-add=CHOWN --cap-add=SETUID --cap-add=SETGID --cap-add=DAC_OVERRIDE --cap-add=NET_RAW \
    -v /var/atlas-probe/etc:/var/atlas-probe/etc \
    -v /var/atlas-probe/status:/var/atlas-probe/status \
    -e RXTXRPT=yes \
    --network=host \
    -e ATLAS_UID=13335 -e ATLAS_GID=13335 \
    --name ripe-atlas \
    kskbsi/ripe-atlas:latest