kayx23 opened a new pull request, #478: URL: https://github.com/apache/apisix-docker/pull/478
This PR updates `apisix` uid from 1001 to a larger number in the Debian Dockerfile to avoid conflicts. The `uid` was initially introduced in https://github.com/apache/apisix-docker/issues/326 **Reason for the update**: to mount a file to the container built off this image for data persistency, users could encounter **Permission Denied** when container user is trying to write to the file on the host that's mounted. This could be resolved by changing the ownership of the mounted directory/file on host to `apisix` user with the same uid as in the container. The `apisix` user needs to be created on host. For example: ``` sudo useradd -u 1001 apisix mkdir ~/conf touch ~/conf/config.yaml sudo chown -R apisix:apisix ~/conf ``` However, it is quite common to have a pre-existing user with uid 1001. Hence this PR changes the uid to a larger number. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
