build a Ruby On Rails 5.0 development environment on windows 10 with docker and ruby 2.5.0.

PC using this time.

Think Pad
windows 10
Intel Core i3-4000M 2.40GHz or up
Memory: 4GB or up
Storege: 128GB or up


What is docker

README FIRST for Docker Toolbox and Docker Machine users: Docker for Windows requires Microsoft Hyper-V to run. The Docker for Windows installer enables Hyper-V for you, if needed, and restart your machine. After Hyper-V is enabled, VirtualBox no longer works, but any VirtualBox VM images remain. VirtualBox VMs created with docker-machine (including the default one typically created during Toolbox install) no longer start. These VMs cannot be used side-by-side with Docker for Windows. However, you can still use docker-machine to manage remote VMs.

You need some setting when you use PC without Hyper-V.


a. Check your User Name.
Use English Username, if you have non-English name on your folder "C:/User//"User Name, you can't use "docker-compose command".
If you are using non-English name, you have to create new user, and start from "b."

Create Local Account Process is belows.

b. Turn on Virtualization Techology in BIOS.
See these instructions to install Hyper-V manually. A reboot is required. If you install Hyper-V without the reboot, Docker for Windows does not work correctly. On some systems, Virtualization needs to be enabled in the BIOS. The steps to do so are Vendor specific, but typically the BIOS option is called Virtualization Technology (VTx) or similar.
You need google it like "'Maker Name' BIOS virtualization Technology", since Settings are different depends on Makers.
Processes are Belows.

c. Turn on Hyper-V(in case you have Hyper-V)

d. download&install docker
if you have Hyper-V
if you don't have Hyper-V
After installing, you see the
Docker Quickstart Terminal
on Desktop
Click it, and start.

e. Set Environmetal Variable, "COMPOSE_CONVERT_WINDOWS_PATHS=1".
see belows.

f. Clone sample app.
(you need github account and login)
git clone

g. Start up docker-rails program.
cd docker-rails
docker-compose run web rails new . --force
docker-compose build
docker-compose up

h. access can be

i. when you want to stop the program, docker-compose down or Control+C
If you do double Control+C, you see these errors.
web_1 | A server is already
running. Check /myapp/tmp/pids/
To resolve this, delete the file tmp/pids/, and then re-start the application with docker-compose up.
rm tmp/pids/

j. how to login to docker
docker-compose exec web bash

k. clone these files


you can share files, based on docker-compose file.

* when you can't use docker-compose command on windows, you need to set the environmental variable.

If you want to open multiple terminals, open multiple docker quick terminal window.