Hi Johannes, Thanks for the idea. I tried using absolute path in docker-compose.yaml, but
it fails to launch the container with "Permission Denied" error saying that it
cannot mkdir /Users. This is strange because the /Users directory should already exist on
Podman machine. This is not an issue on fedora by the way when I run docker-compose.
Any ideas?
On Fri, Jun 16, 2023 at 9:35, Johannes Kastl<kastl(a)b1-systems.de> wrote: On
02.06.23 at 19:22 Mehdi Haghgoo via Podman wrote:
volumes:
- .:/var/www/html
I guess this is no typo, you are really using "." as volume for /var/www/html?
volumes:
wp_uploads: {}
wpdb_vol: {}
When running the containers, in WordPress admin page, I cannot
install a plugin. Basically, the container is not allowed to create directories under
wp-content. It fails with permission error:
"Could not create directory
/var/www/html/wp-content/upgrade/oceanwp-3.4.4/oceanwp"
I tried chmod 777 on all wp-content (with -r), but it didn't help.
I would try using a "real volume" (and not just ".") for
/var/www/html.
My guess would be that due to MacOS and Podman Machine (and not using Podman
directly, like on Linux) this does not work.
Kind Regards,
Johannes
--
Johannes Kastl
Linux Consultant & Trainer
Tel.: +49 (0) 151 2372 5802
Mail: kastl(a)b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg
http://www.b1-systems.de
GF: Ralph Dehner
Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537