Closed

Description
I am using:
- Docker Desktop WSL 2 backend
wordpress:php7.4-apache
I have wordpress
folder mounted to /var/www/html
. Because the files are owned by www-data
I can't edit them. I try to run the image as an arbitrary user, but I get apache2: bad user name 1000
.
Code for testing purpose:
docker run -d \
--name wordpress \
--mount type=bind,source=/home/adrian/workspace/wordpress,target=/var/www/html \
-e APACHE_RUN_USER=1000 \
-e APACHE_RUN_GROUP=1000 \
wordpress:php7.4-apache