#Installing Drupal 8 with Docker
First, create and enter a directory on your host machine to act as a project root:
mkdir -p ~/Sites/drupal8 && cd $_
Then, execute the following line to use Composer to install the Drupal 8 files with correct permissions into a www subdirectory of your project root:
docker run --rm -v $PWD/html:/var/www/html composer create-project drupal-composer/drupal-project:8.x-dev /var/www/html --stability dev --no-interaction