If you’ve ever tried to install Docker for Windows, you’ve probably came to realize that the installer won’t run on Windows 10 Home. Only Windows Pro, Enterprise or Education support Docker. The install Home Assistant in docker on Windows instructions are great, with one exception. It explains the required prerequisites to make sure docker has access to a host disk. However, those instructions have outdated instructions to setup the port-forward rules, which ultimately makes it a waste of time. They share this command (don’t use). ⚠️ If you restart your computer the EditionID will be reset and you have to set it again. ⭐️ Now, run the Docker installer again. It should proceed without any problems. After the installation, you can change the EditionID back to Core. I hope you got everything working and are up and running with. Mar 04, 2019 And there is also something called Docker Engine – Community and Docker Engine – Enterprise. It seems like these are free versions, whereas the Community version for Windows 10 is also called Docker Desktop for Windows. Docker Desktop for Windows comes with an installation program and has a (basic) GUI.
Recently I have been watching a tutorial where, in order to follow it, you need to have Docker running on your machine. So far, so good.
But it turns out that the latest versions of Docker require Windows 10 Pro, Enterprise, or Education. Which means that if you are like me and have just Windows 10 Home edition on your personal laptop, then you cannot use Docker…or maybe you still can.
Read on below to find out how. ?
First, let's do a short summary of the situation. What do we want to achieve and what do we currently have?
We have Windows 10 OS Home edition on our machine. We would like to have Docker running on the same machine so that we are able to create docker images, run containers, and learn better and grow faster!
The last one is a bit out of the scope of this article, but we should start from somewhere, no? ?.
After defining what we want, let's see how to achieve it. Here are the steps I followed. It worked for me, which make me want to share it with you. And maybe I can save someone a few days of going back and forth to StackOverflow! ?
After some reading, I found this article. It explains that it is possible to use Docker in Windows 10 Home by leveraging a Linux virtual machine and having Docker containers running on it. Let's see how it works.
Step 1: Installations
First you need to install a software called Oracle VM VirtualBox. It gives you the ability to have multiple virtual machines installed on your physical one. This way we can have a virtual machine which will be running Linux where our Docker will live.
Then use Windows PowerShall and Chocolatey, your Windows package manager, to install a docker-machine by running the following:
Open your favorite bash terminal app and run this:
This will create a docker virtual machine called 'default'.
Step 2: Configurations
Install Docker Windows 10 Home
Next, we need to configure which ports are exposed when running Docker containers. You can do that by going to Oracle VM VirtualBox -> default virtual machine -> Settings -> Network -> Adapter 1 -> Port Forwarding.
This was the most criticaldetail that I forgot . We need to allow Docker to mount volumes located on your hard drive. By default, you can only mount from the
To add a different path, simply go to the Oracle VM VirtualBox GUI. Select default VM and go to Settings > Shared Folders. If you don't mind to use the default settings, do not forget to put your project under the 'Users' directory, e.g.
In my case, I forgot about this and had to spend few days of head banging until I figured out why the heck was I getting a 'Couldn't find package.json' error when trying to run the containers, built through this tutorial.
Start the virtual machine by running the following command in your terminal app:
Step 3: Setting up Environment Variables
Next, we need to set up Docker environment variables:
This allows the Docker client and Docker Compose to communicate with the Docker Engine running in the Linux VM that we named 'default'.
You may also need to run:
in order to get Docker working properly. Note: the specified path in the above command may vary depending on your setup.
If you are going to use things such as
docker-compose up, you will need to install Docker Tools as well. You may do it by running the following commands in PowerShall:
These will install everything you need to start using Docker on your Windows 10 Home OS.
Now that we have all we need, we may spend our time on actual learning, either by following a docker-related tutorial or reading a book. No matter what you want to do next, you have all the tools you will need.
I personally will try to finish the previously mentioned tutorial and then, who knows, may be I will start using Docker for each project I do.
Can You Install Docker On Windows 10 Home
By the way, during the process of researching, I found a very promising book which is specifically about Docker. It's called 'Docker in Practice' by Ian Miell. If this interests you, you might want to take a look.
? Thanks for reading! ?