Install Docker on Windows 10#
- Docker Installer won’t work so I had to download docker-tookbox instead: https://www.docker.com/products/docker-toolbox
- Boot up VirtualBox boot2docker and run
docker -v
to make sure everything works
- One caveat is that
docker-compose
is pre-installed in boot2docker
Setting up and Running PHP project in docker#
- In boot2docker VM, use
composer
container to pull down app repo into shared folder ie. windows:c\Users\
vs boot2docker/c/Users/
- config
docker-compose.yml
and other app specific config files on host (windows) machine
- (Make sure boo2docker is open) Open docker command-line (note the docker machine IP address) and run
docker-compose up -d
under app dir
- app should be running. Use
docker exec -it app_web_1 /bin/bash
to access app shell
- Access docker machine IP address:app_port to view the app. Where app_port should be specified in
docker-compose.yml