A Docker container to run Drush, Drupal's command line tool.
This covers how to run the Drush container through the Docker CLI.
Pull drush/drush from the Docker repository:
docker pull drush/drushAlternatively, you can download a specific version of Drush:
docker pull drush/drush:8To execute Drush directly, run the container with docker run, mounting the /app volume:
docker run -v $(pwd):/app drush/drush
docker run -v $(pwd):/app drush/drush help
docker run -v $(pwd):/app drush/drush --version
docker run -v $(pwd):/app drush/drush statusIf you installed a specific version of Drush, run it with:
docker run -v $(pwd):/app drush/drush:8 --version- Download the source:
git clone https://github.com/RobLoach/drush-docker.git
cd drush-docker- Build one of the images:
docker build -t drush/drush:8 8- Use the
Makefileto build and test all images:
make-
Visit the
drush/drushDocker Hub for build details. -
Submit Pull Requests and create issues for new changes and features you'd like to add.