Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Docker for Windows

Tri Pham edited this page Apr 3, 2019 · 4 revisions

Docker for Windows installation guide

Requirement

  • Uninstall Docker Toolbox.
  • Windows Pro, Enterprise. Windows Home cannot be able to use this because it does not support Hyper-V.

Download

Download from https://hub.docker.com/editions/community/docker-ce-desktop-windows

1

Install

After installation, search for Docker Desktop for Windows then start as Administrator

2

The Docker Desktop for Windows will ask for Hyper-V, if it is not enable, open Windows Features to enable it

3

Then have to restart the computer to apply change, after that, open the Docker Desktop for Windows again as Administrator.

Start Docker Desktop for Windows

First time open will prompt a login to the Docker Hub, login with your account or register one.

4

After that, open CMD, PowerShell or CMDer as Administrator and run docker ps to see check the status of docker machine.

If there are any problem, try restarting the Docker Desktop for Windows first then retrying.

5

Start the Application

Start the docker-compose script:

  • Run this script sh dev.sh up

Encounter shared volumes issue

6

Open Hyper-V Administration Properties

7

  • Add the Administrator user and Authenticated User

Open Docker Desktop for Windows setting

8

  • Enable driver where the project directory located (for example: C) then click Apply.

Also make sure that the docker-users group has the Full Control access to the project

image

After that, everything should be ready. Enjoy a very fast development compare to the Docker Toolbox solution. Happy coding.

Known issues

Missing CA certificate

This issue happens when I forgot to uninstall Docker Toolbox in the first place.

"could not read CA certificate "C:\Users\...\.docker\machine\machines\default\ca.pem": open C:\Users....docker\machine\machines\default\ca.pem: The system cannot find the path specified."

https://github.com/docker/for-win/issues/1746

Hyper-V group users

I had already mentioned about this above.

https://github.com/docker/for-win/issues/2946#issuecomment-467295071

Unauthorized: incorrect username or password

docker login --username xxx --password yyy

Docker won't start containers

Turn off fast startup https://github.com/docker/for-win/issues/1038#issuecomment-458440399