This article discusses installing and running Docker on Windows. Also refer to the following article on other specifics: Redirecting…
Assumptions
- This article is based on using Windows 10 Pro as the sample platform, but most of the instructions should also work for recent versions of Windows servers.
- This article is about installing Docker Community Edition (“CE”).
- This article assumes that the Docker installation will be used to run non-Windows Docker containers such as ZeroNorth’s Integration Container and Integration Orchestrator containers that are based on Alpine images.
Prerequisites
The Docker Hub article referenced above tells you most of what you need to know, but here are the basics:
- Windows 10 64-bit Pro/Enterprise/Education edition (and possibly server editions)
- Virtualization must be enabled.
- Hyper-V must be enabled.
- A Docker Hub account.
Installation Procedure
The installation is usually simple, assuming that you have the prerequisites all worked out in advance. Download the installation file from Docker Hub by following the link in the above mentioned link.
Installation trouble-shooting
- If you run into an error like this:
It means that the Hyper-V and virtualization have been enabled, but the services may not be running. Refer to this article:
Starting up Docker
The docker-users group
There should be an entry in the Start menu for this. By default, you will need to run it as as administrator user. However, it’s best to run Docker using a non-admin user by adding the desired Windows user account to the docker-users
group:
Hyper-V
If you run into the following error while trying to start Docker:
Then Hyper-V isn’t enabled. You can change this setting in the Control Panel > Turn Windows features on or off.
Shared Drives
The first time you start Docker on Windows, it may ask for your password to confirm that you want to share the C:
drive with the Docker containers. You want this. Afterwards, confirm that this is working by examining the Docker Desktop settings:
You will see something like this: