/docker-wordpress-wp-cli

Dockerfile for WordPress with WP-CLI pre-installed.

Primary LanguageDockerfileMIT LicenseMIT

docker-wordpress-wp-cli

Docker Stars Docker Pulls Docker Automated Docker Build

NOTE: The official WordPress Docker images now include wp-cli as a variant


This repository contains the Dockerfile for the autobuild of wordpress-with-wp-cli Docker image.

The Dockerfile uses the official WordPress image and adds wp-cli.

To use, simply run:

docker run --name <containername> conetix/wordpress-with-wp-cli

For all other configuration items, please see the official Docker WordPress ReadMe.

After you've completed the WordPress installation via the browser, you call the standard wp-cli commands via docker exec. For example, to install and activate the Quark theme:

docker exec <containername> wp theme install quark
docker exec <containername> wp theme activate quark

Development and Contributions

As the official WordPress Docker Image now includes wp-cli, this project should be consided to be legacy only. Please feel free to fork for your own usage if it's still required.