HowTo - Docker on Windows
This short post takes you through the steps to get Docker for Windows up and running on your local machine. Docker is a pre-requisite for following along with some of our blog posts.
For an introduction to what Docker is, read this: https://www.docker.com/what-docker
WhatDoYouNeed?
You will need a computer with Windows 10 Professional or Enterprize installed. Most modern PC's will do in terms of memory, disk and CPU.
WhatDoYouDoNow?
Download Docker
- Head over to the docker website: https://www.docker.com/
- Click on the Product tab, top center screen
- Click on
GET DOCKER COMMUNITY EDITION
- On the page that opens up, click on
GET DOCKER CE FROM DOCKER STORE
- Scroll down to the
Docker Community Edition for Windows
and click on the block
- You will now need to sign in if you have credentials, or register as a new user
- Click on the
Create Account
link to complete the quick and free sign up process
- Follow the prompts and create your user
- Complete your registration, sign in and then click on the
Get Docker
button
- A download will start. Check for blocked popup windows if you do not see any downloads starting
Install Docker
- After the download completes, run it.
- UAC might ask for permission to run the setup. Accept it if you can confirm it is from Docker.
- Keep the default Configuration settings
- If all is well, Docker will show a screen stating
Installation Succeeded
- Docker is now installed.
Start Docker
- Open up Docker from the Start Menu
- A Toast will indicate that Docker is starting
Enable Hyper-V and Containers Features (If required)
- You might get a warning, depending on your setup, that Hyper-V and Container features are not enabled. STOP and think about what would be affected on your machine here. If you are happy to proceed, save all of your work and then click Ok.
- Your computer will restart and Docker will automatically start up after you login to Windows
Sign In
- After Docker has started up you will see the following screen prompting for your username and password
- To sign in to most of the clients, you need to used your
DOCKER ID
. This is not the same as yourDOCKER USERNAME
. - To find your
DOCKER ID
sign in to the Docker website and look for your Id which will be displayed next to your avatar, top right screen
- Use the same password you used to sign in to the website.
Test Docker
- Open a command prompt and type
docker --version
- If Docker is up and running, you should see the Docker version installed as output.
Run your first Docker app
- Now that Docker is up and running, we can run our first app.
- In a command prompt, type
docker run hello-world
- This instructs Docker to find the image hello-world, which is a little test image created by Docker, and to spin it up on your local machine.
- If you see
Hello from Docker!
, CONGRATULATIONS!!! You have successfully installed Docker on Windows!