When starting redis container with the following configuration:
redis:
image: redis
ports:
- "6379:6379"
volumes:
- "/data:/data"
deploy:
placement:
constraints: [node.role == manager]
command: redis-server --appendonly yes
networks:
- webnet
I get the following error in logs:
chown: cannot read directory '.': Permission denied
- Docker host is a Red Hat Enterprise Linux Server release 7.4 (Maipo)
- /Data exists on host
- Tried to chmod 777 /Data
- Tried chown 999:999 /Data