Batch run WP-CLI on Docker containers
list themes:
docker ps -f "ancestor=wordpress" --format "{{.Names}}" | xargs -I % \
sh -c 'echo "\n\n%\n"; docker exec % wp --allow-root theme list'
update all themes:
docker ps -f "ancestor=wordpress" --format "{{.Names}}" | xargs -I % \
sh -c 'echo "\n\n%\n"; docker exec % wp --allow-root theme update --all'