Drupal Console Docker Container
Supported tags and respective
What is Drupal Console?
This covers how to run the Drupal Console container through the Docker CLI.
drupalconsole/console from the Docker repository:
docker pull drupalconsole/console
Alternatively, you can download a specific version of Drupal Console:
docker pull drupalconsole/console:1.0
To execute Drupal Console directly, run the container with
docker run, mounting the
docker run -v $(pwd):/app drupalconsole/console docker run -v $(pwd):/app drupalconsole/console help docker run -v $(pwd):/app drupalconsole/console --version docker run -v $(pwd):/app drupalconsole/console status
If you installed a specific version of Drupal Console, run it with:
docker run -v $(pwd):/app drupalconsole/console:1.0 --version
Download the source:
git clone https://github.com/sylus/docker-drupalconsole.git cd docker-drupalconsole
Build one of the images:
docker build -t drupalconsole/console:1.0 1.0
Makefileto build and test all images:
drupalconsole/consoleDocker Hub for build details.
Submit Pull Requests and create issues for new changes and features you'd like to add.
How to use this image.
Installation / Usage
$ docker pull drupalconsole/console
Alternatively, pull a specific version of
$ docker pull drupalconsole/console:1.0
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.
This is made to run Composer through PHP 5, rather then the default of PHP 7.
This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This is made to run Composer through PHP 5, rather then the default of PHP 7, through the Alpine container.