Alpine Linux based Docker image for WP-CLI.
WP-CLI is a set of command-line tools for managing WordPress installations.
Pull the image from Docker Hub.
docker pull devaloka/wp-cli
Or, pull the image from Quay.
docker pull quay.io/devaloka/wp-cli
Mount a data-volume-container and run WP-CLI.
docker run --rm -it -u <uid>:<gid> -v <data-volume-container> devaloka/wp-cli <command>
Mount a host directory and run WP-CLI.
docker run --rm -it -u "$UID:$(id -g)" -v "$(pwd)/wp:/wp-cli" devaloka/wp-cli <command>
Mount a data-volume-container and run WP-CLI.
docker run --rm -it -u <uid>:<gid> -v <data-volume-container> quay.io/devaloka/wp-cli <command>
Mount a host directory and run WP-CLI.
docker run --rm -it -u "$UID:$(id -g)" -v "$(pwd)/wp:/wp-cli" quay.io/devaloka/wp-cli <command>