📦 Docker container to install and run Composer.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead, 142 commits behind RobLoach:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Composer Docker Container

Docker container to install and run Composer.


Installation / Usage

  1. Install the composer/composer container:

    $ docker pull composer/composer

Alternatively, pull a specific version of composer/composer: sh $ docker pull composer/composer:1.0.0-alpha9

  1. Create a composer.json defining your dependencies. Note that this example is a short version for applications that are not meant to be published as packages themselves. To create libraries/packages please read the documentation.

        "require": {
            "monolog/monolog": ">=1.0.0"
  2. Run Composer through the Composer container:

    $ docker run -v $(pwd):/app composer/composer install

Or run using a specific version of Composer: sh $ docker run -v $(pwd):/app composer/composer:1.0.0-alpha9 install

Installation from Source

To run, test and develop the Composer Dockerfile itself, you must use the source directly:

  1. Download the source:

    $ git clone https://github.com/RobLoach/composer-docker.git
  2. Switch to the composer-docker directory:

    $ cd composer-docker
  3. Build the container, using Composer's latest master release:

    $ docker build -t composer/composer master
  4. Test running Composer through the container:

    $ docker run composer/composer help