The docker-Compose file contains the following content. The error message is redis? ? | Error executing 'postinstallation': eacces: Permission denied, mkdir '/bitnami/redis/conf'. This error occurs because docker does not have the read/write permission on the mounted data file data directory, solution: Run
# Grant data directory Read and Write Permissions
$ Chmod 777 redis/Data ??????
# Stop and clear old containers
$ Docker-Compose down
# Create a new container and start it in the background
$ Docker-Compose up-d
Version: "3"
Services:
Redis: # ranking
Image: "bitnami/redis: 4.0.9" # image name
Hostname: redis # Host Name
Container_name: redis # container name
Ports: # port ing, host: Container
- 6379: 6379"
Volumes: # Mount
- ./Data:/bitnami/redis
Environment: # Environment Variables
TZ: "Asia/Shanghai" # set the time zone to + 8
Allow_empty_password: "Yes"
Network_mode: bridge # Network Mode: Host, bridge, nonerestart: Unless-stopped # automatic: Unless-stopped, always
The docker-Compose file contains the following content. The error message is redis? ? | Error execut