anyeshe commented on issue #171:
URL: https://github.com/apache/apisix-docker/issues/171#issuecomment-836237223


   > have you tried to build with non-root user
   
   尝试过,也是同样的错误,我刚才尝试使用composer file文件中etcd的镜像仓库里的配置文件就没有问题,如下:
   ```
   version: '2'
   
   services:
     etcd:
       image: docker.io/bitnami/etcd:3
       environment:
         - ALLOW_NONE_AUTHENTICATION=yes
       volumes:
         - etcd_data:/bitnami/etcd
   volumes:
     etcd_data:
       driver: local
   ```
   
   我仿照着改成了下面的样子
   ```
     etcd:
       image: docker.io/bitnami/etcd:3
       restart: always
       volumes:
         - etcd_data:/bitnami/etcd
       environment:
         ETCD_ENABLE_V2: "true"
         ALLOW_NONE_AUTHENTICATION: "yes"
         ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379";
         ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379";
       ports:
         - "2379:2379/tcp"
       networks:
         apisix:
   ```
   
   完后一切就正常了,我觉得应该是下面两项配置有点问题
   ```
       volumes:
         - ./etcd_data:/etcd_data
       environment:
         ETCD_DATA_DIR: /etcd_data
   ```
   导致权限出错


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to