RandomFactoid Posted March 9, 2023 Share Posted March 9, 2023 Hi. I have a user set up for my wife to access samba shares. Oddly, i've just noticed having ran 'ps aux' in the terminal that Redis docker process is running as my wife's username. Really bizzare. My docker run is here: docker run -d --name='redis' --net='delta' -e TZ="Europe/London" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Adulis" -e HOST_CONTAINERNAME="redis" -e 'ALLOW_EMPTY_PASSWORD'='no' -e 'REDIS_PASSWORD'='REDACTED' -e 'REDIS_EXTRA_FLAGS'='--auto-aof-rewrite-percentage 100 --auto-aof-rewrite-min-size 64mb' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.icon='https://raw.githubusercontent.com/A75G/docker-templates/master/templates/icons/redis.png' -p '6379:6379/tcp' -v '/mnt/user/appdata/redis':'/bitnami/redis':'rw' -v '/mnt/user/appdata/redis/bitnami/':'/bitnami/':'rw' 'bitnami/redis:latest' cb9782ae170734f876e2587f63b06b0105c2e8b800ff7edc698e553f63a8a106 The command finished successfully! root@Adulis:~# ps aux |grep redis wifesusename 20655 0.5 0.0 35248 12972 ? Ssl 18:47 0:00 redis-server 0.0.0.0:6379 root 21159 0.0 0.0 4048 2216 pts/0 S+ 18:47 0:00 grep redis Really bizzare. Any idea why that's so ? Quote Link to comment
gabeo Posted March 9, 2023 Share Posted March 9, 2023 It's because images typically have a UID already specified in them, and if you don't specify a user yourself when launching the container, it will default to that UID. In this case, the image creator's UID match's your wife's UID on your Unraid box. To fix this, specify the user that the container runs as using --user uid:gid Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.