The docker-Compose file contains the following content. The error message is redis? ? | Error execut

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.