-
Notifications
You must be signed in to change notification settings - Fork 589
Open
Description
Here is my compose.yaml file:
$ cat compose.yaml
---
#version: "2.1"
services:
redis:
image: "redis:latest"
container_name: nextcloud-redis
user: "3008:3008"
deploy:
resources:
limits:
memory: 256M
command: /usr/local/bin/redis-server /usr/local/etc/redis/redis.conf
sysctls:
- net.core.somaxconn=65535
volumes:
- "./config:/usr/local/etc/redis"
- "redis-data:/data"
- "nextcloud_unix_socket:/run/nextcloud_redis_socket"
restart: unless-stopped
The container ran fine for awhile then failed and reported permissions errors on /data
.
I discovered that the /data
directory is owned by redis (999) instead.
# docker exec -it nextcloud-redis bash
I have no name!@cc6ad2fa1c5b:/data$ id
uid=3008 gid=3008 groups=3008
I have no name!@cc6ad2fa1c5b:/data$ ls -lhd
drwxr-xr-x 2 redis redis 2 May 30 00:19 /data
I have no name!@cc6ad2fa1c5b:/dat$ id redis
uid=999(redis) gid=999(redis) groups=999(redis)
Metadata
Metadata
Assignees
Labels
No labels