Looking for an outofthebox wordpress install with command line interface I tried this:
https://zerowp.com/wordpress-and-docker
Just two little quirks in the proposed compose.yaml I had to correct:
- WORDPRESS_TABLE_PREFIX=wp\_ shouldn´t contain the backslash
(looks like an editor adding escapes on pasting) - user id = 33 missing, which I found in
https://stackoverflow.com/questions/50999848/how-to-run-wp-cli-in-docker-compose-yml
Thus DB Export succeeded;
root@ubuntu:~/wp# docker-compose run --rm wpcli db export
# Before:
...
Running 0.0s mariadb-dump: Can't create/write to file 'wp-app-2025-07-24-8d86674.sql' (Errcode: 13 "Permission denied")
# After:
...
Success: Exported to 'wp-app-2025-07-24-f885306.sql'.

Schreibe einen Kommentar