Install Composer Docker

Before Docker 17.05 dropped mid-2017, installing software inside a custom Docker image followed the same process as installing it on the host. For example, you can install composer to /usr/local/bin on a desktop by running the following curl command as root. As installing Composer on Windows is some more work (install PHP, install Composer), here, we're demonstrating how you can use Composer through Docker as well. In case you already have composer installed.

  1. Composer Install Docker Build

You'll only need PHP locally to run Composer - so e.g. the built-in PHP of Mac OS is totally fine. If you do not have a php executable available in your system, install it (through homebrew, APT, RPM). Then, install Composer:

Install composer docker container

By issuing this command, Composer will get downloaded as composer.phar to your working directory. We suggest to have composer installed globally, so you can simply move it to a directory within your $PATH environment:

Now install Docker on your operating system:

As installing Composer on Windows is some more work (install PHP, install Composer), here, we're demonstrating how you can use Composer through Docker as well.

In case you already have composer installed...

... then it's easiest to just use it.
Simply run 'composer create-project neos/neos-base-distribution' in your directory of choice, and continue with step 2.

First, please install Docker for Windows.
If you have Windows 10 Home install Docker Toolbox.

Composer

After installing Docker, instead of running composer, you run the following command:

Composer Install Docker Build

On the first run, a notification pops up asking you for access to the drive – you need to press Share it here.