Closed MikeiLL closed 3 years ago
The current directory gets mapped read-only into the container:
https://github.com/chriszarate/docker-compose-wordpress/blob/master/docker-compose.yml#L19
Without making any changes, you can target stdout
by passing -
as the file path (see WP-CLI docs) and then redirect the output locally to a file:
docker-compose run --rm wp-cli wp db export - > dump.sql
Alternatively, remove the :ro
flag from the volume mount. Or map a different volume and point the dump there.
Thanks much, Chris.
Not sure if you're still maintaining the (awesome) repo.
This seems like a limitation:
Tried running with
sudo
. No success.