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
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.
- 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 Windowsand 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 Accountlink 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
- A download will start. Check for blocked popup windows if you do not see any downloads starting
- 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
- Docker is now installed.
- 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
- 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 your
- To find your
DOCKER IDsign 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.
- Open a command prompt and type
- 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!