Как установить docker на windows 10 home

Docker is a tool used by developers to compile software using operating system-level virtualization. Docker has container infrastructure, meaning each container is secluded from the other, but all containers are delivered as a single product.

Docker was originally introduced for the Linux platform. But now, by ensuring several prerequisites, it can now be executed on Windows 10 Professional, Enterprise and Education editions. By default, the Windows 10 Home edition was not supported by the Docker. Let’s continue to see how we can enable Docker for the Home edition.

Ensuring the Prerequisites

We must firstly make sure that all prerequisites are met so that the installation of Docker runs smoothly and without interruptions.

  1. System Requirements:
    64-Bit Windows 10 Home edition version 2004 or higher
    At least 4 GB RAM
  2. Install Hyper-V on Windows 10 Home edition.
  3. Enable Hyper-V and Container Windows Feature by pressing Windows Key and R, then enter OptionalFeatures. Make sure the features are checked, press OK to make the changes.
  4. Enable Virtualization from BIOS settings.

Install Linux Kernel

To begin with, we will need to update the WSL2 Linux Kernel. It is essential to do so as the communication between Docker and the hardware of the computer depends upon it. You may download the updated package for WSL2 Linux Kernel here.

When the download is completed, run it by double-clicking it and then press Next to begin the installation. This installation would usually take less than a minute. When completed, press Finish to exit the installation wizard.

Manipulating Windows Registry

  1. Open up the Registry Editor by pressing Windows Key and R simultaneously to open Run. Type Regedit and press Enter.
  2. Navigate to the following location within the Registry Editor:
    HKEY_Local_Machine -> Software -> Microsoft -> Windows NT -> CurrentVersion
  3. After clicking CurrentVersion, right-click Edition ID in the right window and click Modify.
  4. Under Value Data, replace CoreN with ProfessionalN.

Install Docker on Windows 10 Home

Next, we move onto the Docker itself. Download the installation package for Windows 10 Home here.

Once the download is complete, run it by double-clicking it. A screen should appear as shown below:

image 22
image 22

Ensure that Enable WSL 2 Windows Features is checked. Click OK to begin the installation. This step usually takes about 5 minutes as it displays a screen as show below:

image 23
image 23

Once the installation is completed, press Close and Restart to exit the installation wizard and restart the computer. Once the computer has rebooted, the Docker shall start itself and windows such as the following should popup:

image 25
image 25

Once the installation is completed, we can now move back to revert to the registry manipulation performed earlier during the process and convert ProfessionalN back to CoreN.

If you are a developer and want to test your applications, Docker is the way to go. Go ahead and install Docker on your Windows 10 Home machine and enjoy testing. Don’t forget to comment below!

    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. Upgrading your Windows license is pricey, and also pointless, since you can still run Linux Containers on Windows without relying on Hyper-V technology, a requirement for Docker for Windows.

    If you plan on running Windows Containers, you’ll need a specific version and build of Windows Server. Check out the Windows container version compatibility matrix for details.

    99.999% of the time, you only need a Linux Container, since it supports software built using open-source and .NET technologies. In addition, Linux Containers can run on any distro and on popular CPU architectures, including x86_64, ARM and IBM.

    In this tutorial, I’ll show you how to quickly setup a Linux VM on Windows Home running Docker Engine with the help of Docker Machine. Here’s a list of software you’ll need to build and run Docker containers:

    • Docker Machine: a CLI tool for installing Docker Engine on virtual hosts
    • Docker Engine: runs on top of the Linux Kernel; used for building and running containers
    • Docker Client: a CLI tool for issuing commands to Docker Engine via REST API
    • Docker Compose: a tool for defining and running multi-container applications

    I’ll show how to perform the installation in the following environments:

    1. On Windows using Git Bash
    2. On Windows Subsystem for Linux 2 (running Ubuntu 18.04)

    First, allow me to explain how the Docker installation will work on Windows.

    Want to build more of a foundation in Docker knowledge? Read Learning Docker – Second Edition on SitePoint Premium.

    How it Works

    As you probably know, Docker requires a Linux kernel to run Linux Containers. For this to work on Windows, you’ll need to set up a Linux virtual machine to run as guest in Windows 10 Home.

    docker windows home

    Setting up the Linux VM can be done manually. The easiest way is to use Docker Machine to do this work for you by running a single command. This Docker Linux VM can either run on your local system or on a remote server. Docker client will use SSH to communicate with Docker Engine. Whenever you create and run images, the actual process will happen within the VM, not on your host (Windows).

    Let’s dive into the next section to set up the environment needed to install Docker.

    Initial Setup

    You may or may not have the following applications installed on your system. I’ll assume you don’t. If you do, make sure to upgrade to the latest versions. I’m also assuming you’re running the latest stable version of Windows. At the time of writing, I’m using Windows 10 Home version 1903. Let’s start installing the following:

    1. Install Git Bash for Windows. This will be our primary terminal for running Docker commands.

    2. Install Chocolatey, a package manager for Windows. It will make the work of installing the rest of the programs easier.

    3. Install VirtualBox and its extension. Alternatively, If you have finished installing Chocolatey, you can simply execute this command inside an elevated PowerShell terminal:

      C:\ choco install virtualbox
      
    4. If you’d like to try running Docker inside the WSL2 environment, you’ll need to set up WSL2 first. You can follow this tutorial for step-by-step instructions.

    Docker Engine Setup

    Installing Docker Engine is quite simple. First we need to install Docker Machine.

    1. Install Docker Machine by following instructions on this page. Alternatively, you can execute this command inside an elevated PowerShell terminal:

      C:\ choco install docker-machine
      
    2. Using Git Bash terminal, use Docker Machine to install Docker Engine. This will download a Linux image containing the Docker Engine and have it run as a VM using VirtualBox. Simply execute the following command:

      $ docker-machine create --driver virtualbox default
      
    3. Next, we need to configure which ports are exposed when running Docker containers. Doing this will allow us to access our applications via localhost<:port>. Feel free to add as many as you want. To do this, you’ll need to launch Oracle VM VirtualBox from your start menu. Select default VM on the side menu. Next click on Settings > Network > Adapter 1 > Port Forwarding. You should find the ssh forwarding port already set up for you. You can add more like so:

      docker vm ports

    4. Next, we need to allow Docker to mount volumes located on your hard drive. By default, you can only mount from the C://Users/ directory. To add a different path, simply go to Oracle VM VirtualBox GUI. Select default VM and go to Settings > Shared Folders. Add a new one by clicking the plus symbol. Enter the fields like so. If there’s an option called Permanent, enable it.

      docker vm volumes

    5. To get rid of the invalid settings error as seen in the above screenshot, simply increase Video Memory under the Display tab in the settings option. Video memory is not important in this case, as we’ll run the VM in headless mode.

    6. To start the Linux VM, simply execute this command in Git Bash. The Linux VM will launch. Give it some time for the boot process to complete. It shouldn’t take more than a minute. You’ll need to do this every time you boot your host OS:

      $ docker-machine start vbox
      
    7. Next, we need to set up our Docker environment variables. This is to allow the Docker client and Docker Compose to communicate with the Docker Engine running in the Linux VM, default. You can do this by executing the commands in Git Bash:

      # Print out docker machine instance settings
      $ docker-machine env default
      
      # Set environment variables using Linux 'export' command
      $ eval $(docker-machine env default --shell linux)
      

      You’ll need to set the environment variables every time you start a new Git Bash terminal. If you’d like to avoid this, you can copy eval output and save it in your .bashrc file. It should look something like this:

      export DOCKER_TLS_VERIFY="1"
      export DOCKER_HOST="tcp://192.168.99.101:2376"
      export DOCKER_CERT_PATH="C:\Users\Michael Wanyoike\.docker\machine\machines\default"
      export DOCKER_MACHINE_NAME="default"
      export COMPOSE_CONVERT_WINDOWS_PATHS="true"
      

      IMPORTANT: for the DOCKER_CERT_PATH, you’ll need to change the Linux file path to a Windows path format. Also take note that there’s a chance the IP address assigned might be different from the one you saved every time you start the default VM.

    In the next section, we’ll install Docker Client and Docker Compose.

    For this section, you’ll need to install the following tools using PowerShell in admin mode. These tools are packaged inside the Docker for Windows installer. Since the installer refuses to run on Windows 10 Home, we’ll install these programs individually using Chocolatey:

    C:\ choco install docker-cli
    C:\ choco install docker-compose
    

    Once the installation process is complete, you can switch back to Git Bash terminal. You can continue using PowerShell, but I prefer Linux syntax to execute commands. Let’s execute the following commands to ensure Docker is running:

    # Start Docker VM
    $ docker-machine start default
    
    # Confirm Docker VM is running
    $ docker-machine ls
    
    # Configure Docker Envrionment to use Docker Vm
    $ eval $(docker-machine env default --shell linux)
    
    # Confirm Docker is connected. Should output Docker VM specs
    $ docker info
    
    # Run hello-world docker image. Should output "Hello from Docker"
    $ docker run hello-world
    

    If all the above commands run successfully, it means you’ve successfully installed Docker. If you want to try out a more ambitious example, I have a small Node.js application that that I’ve configured to run on Docker containers. First, you’ll need to install GNU Make using PowerShell with Admin privileges:

    C:\ choco install make
    

    Next, execute the following commands. Running this Node.js example will ensure you have no problem with exposed ports and mounting volumes on the Windows filesystem. First, navigate to a folder that that you’ve already mounted in VirtualBox settings. Next, execute the following commands:

    $ git clone git@github.com:brandiqa/docker-node.git
    
    $ cd docker-node/website
    
    $ make
    

    When you hit the last command, you should expect a similar output:

    docker volume create nodemodules
    nodemodules
    docker-compose -f docker-compose.builder.yml run --rm install
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    audited 9731 packages in 21.405s
    
    docker-compose up
    Starting website_dev_1 ... done
    Attaching to website_dev_1
    dev_1  |
    dev_1  | > docker-node@1.0.0 start /usr/src/app
    dev_1  | > parcel src/index.html --hmr-port 1235
    dev_1  |
    dev_1  | Server running at http://localhost:1234
    

    Getting the above output means that volume mounting occurred successfully. Open localhost:1234 to confirm that the website can be accessed. This will confirm that you have properly configured the ports. You can edit the source code, for example change the h1 title in App.jsx. As soon as you save the file, the browser page should refresh automatically. This means hot module reloading works from a Docker container.

    I would like to bring your attention to the docker-compose.yml file in use. For hot module reloading to work from a Docker Container in Windows requires the following:

    1. When using parcel, specify HMR port in your package.json start script:

      parcel src/index.html –hmr-port 1235

    2. In the VM’s Port Forwarding rules, make sure these ports are exposed to the host system:

      • 1234
      • 1235
    3. inotify doesn’t work on vboxsf filesystems, so file changes can’t be detected. The workaround is to set polling for Chokidar via environment variables in docker-compose.yml. Here’s the full file so that you can see how it’s set:

      version: '3'
      services:
        dev:
          image: node:10-jessie-slim
          volumes:
            - nodemodules:/usr/src/app/node_modules
            - ./:/usr/src/app
          working_dir: /usr/src/app
          command: npm start
          ports:
            - 1234:1234
            - 1235:1235
          environment:
          - CHOKIDAR_USEPOLLING=1
      volumes:
        nodemodules:
          external: true
      

    Now that we have a fully working implementation of Docker on Windows 10 home, let’s set it up on WSL2 for those who are interested.

    Windows Subsystem for Linux 2

    Installing Docker on WSL2 is not as straightforward as it seems. Unfortunately, the latest version of Docker Engine can’t run on WSL2. However, there’s an older version, docker-ce=17.09.0~ce-0~ubuntu, that’s capable of running well in WSL2. I won’t be covering that here. Instead, I’ll show you how to access Docker Engine running in the VM we set up earlier from a WSL terminal.

    All we have to do is install Docker client and Docker compose. Assuming you’re running WSL2 Ubuntu Terminal, execute the following:

    1. Install Docker using the official instructions:

      # Update the apt package list.
      sudo apt-get update -y
      
      # Install Docker's package dependencies.
      sudo apt-get install -y \
          apt-transport-https \
          ca-certificates \
          curl \
          software-properties-common
      
      # Download and add Docker's official public PGP key.
      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
      
      # Verify the fingerprint.
      sudo apt-key fingerprint 0EBFCD88
      
      # Add the `stable` channel's Docker upstream repository.
      #
      # If you want to live on the edge, you can change "stable" below to "test" or
      # "nightly". I highly recommend sticking with stable!
      sudo add-apt-repository \
      "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) \
      stable"
      
      # Update the apt package list (for the new apt repo).
      sudo apt-get update -y
      
      # Install the latest version of Docker CE.
      sudo apt-get install -y docker-ce
      
      # Allow your user to access the Docker CLI without needing root access.
      sudo usermod -aG docker $USER
      
    2. Install Docker Compose using this official guide. An alternative is to use PIP, which will simply install the latest stable version:

      # Install Python and PIP.
      sudo apt-get install -y python python-pip
      
      # Install Docker Compose into your user's home directory.
      pip install --user docker-compose
      
    3. Fix the Docker mounting issue in WSL terminal by inserting this content in /etc/wsl.conf. Create the file if it doesn’t exist:

      [automount]
      root = /
      options = "metdata"
      

      You’ll need to restart your machine for this setting to take effect.

    4. Assuming that Linux Docker VM is running, you’ll need to connect the Docker tools in the WSL environment to it. If you can access docker-machine from the Ubuntu terminal, run the eval command. Otherwise, you can insert the following Docker variable in your .bashrc file. Here is an example of mine:

      export DOCKER_HOST="tcp://192.168.99.101:2376"
      export DOCKER_CERT_PATH="/c/Users/Michael Wanyoike/.docker/machine/machines/vbox"
      export DOCKER_MACHINE_NAME="vbox"
      export COMPOSE_CONVERT_WINDOWS_PATHS="true"
      

      You’ll need to restart your terminal or execute source ~/.bashrc for the settings to take effect. Running Docker commands should work properly in WSL without a hitch.

    Switching to Linux

    We’re now coming to the end of this article. The steps for setting up Docker in Windows 10 is a bit of a lengthy process. If you plan to reformat your machine, you’ll have to go through the same process again. It’s worse if your job is to install Docker on multiple machines running Windows 10 Home.

    A simpler solution is to switch to Linux for development. You can create a partition and set up dual booting. You can also use VirtualBox to install and run a full Linux Distro inside Windows. Check out which popular distro you’d like to try out. I use Linux Lite because it’s lightweight and is based on Ubuntu. With VirtualBox, you can try out as many distros as you wish.

    Linux Lite VM

    If you’re using a distro based on Ubuntu, you can install Docker easily with these commands:

    # Install https://snapcraft.io/ package manager
    sudo apt install snapd
    
    # Install Docker Engine, Docker Client and Docker Compose
    sudo snap install docker
    
    # Run Docker commands without sudo
    sudo usermod -aG docker $USER
    

    You’ll need to log out and then log in for the last command to take effect. After that, you can run any Docker command without issue. You don’t need to worry about issues with mounting or ports. Docker Engine runs as a service in Linux, which by default starts automatically. No need for provisioning a Docker VM. Everything works out of the box without relying on a hack.

    Summary

    I hope you’ve had smooth sailing installing and running Docker on Windows 10 Home. I believe this technique should work on older versions such as Windows 7. In case you run into a problem, just go through the instructions to see if you missed something. Do note, however, that I haven’t covered every Docker feature. You may encounter a bug or an unsupported feature that requires a workaround, or may have no solution at all. If that’s the case, I’d recommend you just switch to Linux if you want a smoother development experience using Docker.

    How to run Docker on Windows 10 Home edition

    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. ?

    Reasoning

    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? ?.

    Actions

    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:

    choco install docker-machine

    Open your favorite bash terminal app and run this:

    docker-machine create --driver virtualbox default

    This will create a docker virtual machine called ‘default’.

    Step 2: Configurations

    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.

    VirtualBox Port Forwarding

    This was the most critical detail that I forgot . We need to allow Docker to mount volumes located on your hard drive. By default, you can only mount from the C://Users/ directory.

    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. C:\Users\{your project}.

    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:

    docker-machine start default

    Step 3: Setting up Environment Variables

    Next, we need to set up Docker environment variables:

    docker-machine env default

    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:

    @FOR /f "tokens=*" %i IN ('"C:\ProgramData\chocolatey\lib\docker-machine\bin\docker-machine.exe" env') DO @%i

    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:

    choco install docker-cli
    choco install docker-compose

    These will install everything you need to start using Docker on your Windows 10 Home OS.

    Conclusion

    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.

    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! ?

    References

    • https://www.virtualbox.org/
    • https://www.sitepoint.com/docker-windows-10-home
    • https://www.youtube.com/watch?v=6Yfm5gHQjaQ&list=PLnTRniWXnjf8YC9qJFLSVCrXfS6cyj6x6&index=2
    • https://github.com/mihailgaberov/microservices
    • http://support.divio.com/en/articles/646695-how-to-use-a-directory-outside-c-users-with-docker-toolbox-docker-for-windows


    Learn to code for free. freeCodeCamp’s open source curriculum has helped more than 40,000 people get jobs as developers. Get started

    If you want to use Docker directly within Windows, and you want to run Windows containers, there’s still no official support. Docker Desktop won’t allow it; it says «Windows Containers support requires a Windows 10 Pro or enterprise build >= 14372».

    Windows Containers support requires a Windows 10 Pro or enterprise build >= 14372

    However, if you’re interested in Linux containers, and you have WSL2 on your Windows 10 Home instance (which you’ll have as of version 1903+), you don’t need to install Docker Desktop.

    (1) Setup a Linux instance via WSL2

    Get into an elevated CLI prompt (CMD and PS both work fine):

    1. Confirm you’ve got WSL2: wsl --status
    2. Install Ubuntu: wsl --install
      • Same as wsl --install --distribution ubuntu
    3. After you’re forced to reboot, and you log back in, you’ll get a specialized command prompt window that pops up. Setup you Linux user and password. (If you forget, you can do a wsl --user root followed by passwd {your-account-name} to fix it.)
    4. Update: sudo apt update && sudo apt upgrade
    5. Mine didn’t have ifconfig: sudo apt install -y net-tools

    If you want more info on how to control your instance(s), look at the Microsoft docs.

    In general, getting «into» the default, Ubuntu instance within WSL is as easy as typing either «bash» or «ubuntu» from a regular CLI prompt. Though, I’d highly recommend installing «Windows Terminal» and using that instead.

    (2) Install Docker

    Open up a prompt inside your Linux instance. The general instructions are here, if you need more help. I used a Ubuntu instance.

    1. Trust the docker repo’s GPG key: curl -fsSL https://download.docker.com/linux/${ID}/gpg | sudo apt-key add -
      • Same idea as: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    2. Add their stable repo as a package source: echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/${ID} $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
      • Same idea as: echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    3. Update your local index: sudo apt update
    4. Install docker!: sudo apt install -y docker-ce docker-ce-cli containerd.io
    5. Add your account to the «docker» group: sudo usermod -aG docker $USER
    6. Get that group change to be recognized:
      • Close all of your open sessions and wait ~10 seconds for the Linux instance to get shutdown automatically. Then open up a new session.
      • Close the window and force the instance to restart (from a Windows CLI prompt): wsl --terminate {distro-name} . Then open up a new session.
    7. Start docker: sudo -b dockerd
    8. Prove it’s working: docker run --rm hello-world

    Dockerd and services/auto-start concerns

    WSL2 doesn’t presently have a clean way to auto-start the dockerd daemon. There’s a lot of workarounds on the ‘Net. Some people start it via a Scheduled task that starts dockerd via wsl. Some people start it via a smart chunk of code in either .profile or .bashrc. Soon, there’s supposed to be a officially supported approach via the «[boot]» section of the /etc/wsl.conf file, but it still doesn’t appear to have landed in Windows 10 20H2 as it was suggested it would.

    UPDATE 2021-11-25: I decided on adding this to my .profile (copied from here). It goes around sudo.

    if service docker status 2>&1 | grep -q "is not running"; then
        wsl.exe -d "${WSL_DISTRO_NAME}" -u root -e /usr/sbin/service docker start > /dev/null 2>&1
    fi
    

    Interactions with the Windows host

    • From a Linux instance into Windows, there’s mount points: /mnt/{windows-drive-letter}/...
    • From Windows into a Linux instance, there’s a magic «share»: \\wsl$\{linux-instance-name}\...

    More info on how file permissions work when crossing OS boundaries.

    Before installing docker, you need to find out the type of windows system you have. Whether you have windows 10 HOME or windows 10 PRO will impact how you install docker.

    To find out your system type,

    • Click on windows icon, search “system info“,
    • Click on “system information
    • Check on your "OS Name” to see your system type.

    Follow the instruction below that matches your system type.

    How to install docker on windows 10 Home

    Follow the steps below to install docker on windows 10 Home

    You can also watch this video that shows you how to install docker on windows 10 home and windows 10 pro or read the blog or even better, use the blog and video together to install docker.

    How to Install & Use Docker in Windows 10 Home and Windows 10 Pro

    Step 1: System Requirements to Install Docker on Windows Home

    These are the computer requirements to install docker on windows home

    • Windows 10 64bit, version 1903 or higher.
    • 4GB system RAM

    In addition to the system requirements above, you also need to install WSL2 and activate virtualization on your computer.

    Don’t worry, I got you covered. Follow the Instructions below on Step 2 to enable virtualization and WSL2

    Step 2: Enable Virtualization & WSL2 on your windows Home computer

    NOTE: You MUST have WSL2 in order to use docker in windows HOME. Follow the Instructions I have laid out on this blog teaching you How to install WSL2 on your windows home computer.

    These are the things you need to have enabled on windows home computer in order to install and use docker.

    • Virtual Machine Platform
    • Windows Subsystem for Linux (WSL2)
    • BIOS-level hardware virtualization enabled.

    To enable Virtual Machine Platform and WSL,

    Click on windows icon —> search for “Turn windows features on or off” —> click on it —> select “Virtual machine platform” and “Windows subsystem for linux“, click OK.

    You will need to re-boot your computer after this step.

    WARNING: The above instructions installs WSL but NOT WSL2 which is what you need for docker.

    NOTE: To upgrade to WSL2, Follow the instructions I have laid out on this blog —> How to install/uprade to WSL2 on your computer

    After following the instructions on that blog to upgrade to WSL2, return to this blog.

    Then, FOLLOW Steps 3 & 4 Below to install and start Docker on your windows HOME Computer.

    How to install docker on windows 10 Pro

    Follow the steps below to install docker on windows 10 Pro

    Step 1: System Requirements to Install Docker on Windows Pro

    These are the computer requirements to install docker on windows 10 Pro, enterprise, or education.

    • Windows 10 64-bit processor, Build 17134 or later.
    • 4GB system RAM
    • BIOS-level hardware virtualization enabled. Follow the instructions on STEP 2 BELOW to enable it.

    Step 2: Enable Virtualization & Hyper-V on your computer

    These are the virtualization requirements you need in order to use docker on windows 10 pro.

    • Make sure your computer meets the requirements above. For more information on computer requirements, check out his page on hyper-v requirements.
    • Now, you have to make sure
      • Virtualization is enabled in the BIOS, your computer has
      • Second Level Address Translation (SLAT), and
      • Hypervisor enabled at Windows startup.
    • Use this method to verify your system can run hyper-V. Open the command line —> type in “systeminfo” —> scroll to the bottom and check Hyper-V requirements. Make sure everything says “YES”

    If everything is not checked yes, you need to google how to enable BIOS level virtualization for your computer since it varies from device to device.

    If everything is checked Yes, then proceed to the next step.

    • Click on windows icon —> Type in “Turn windows feature on or off” —> Click on it —> select “Hyper-V” and make sure both sub-options are selected too.

    If you see “Windows Hypervisor Platform” instead of “Hyper-V”, your computer may not be compatible for Hyper-V.

    • You could also enable hyper-V using Powershell. Open Powershell as an admin and type
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
    • Alternatively, you can also enable hyper-V using the command prompt. Just open the command prompt tool and type
    DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

    No matter how enable Hyper-V, re-start your computer before moving onto the next step, if not docker won’t work.

    If you run into any problems with getting docker to work because of virtualization problems, I suggest you check out this page.

    Now that you have Hyper-V enabled, you are ready to move onto the next step which is installing docker.

    Step 3: Install Docker on Windows Home and Windows Pro Computer

    These are the steps to install docker on windows pro

    • First, download docker for windows using this link
    • Double click the installer that you just downloaded to run the docker installer
    • When given the option, make sure “enable Hyper-V Windows Features” option is selected on the Configuration page.
    • Just follow the installer to finish installing docker.

    Step 4: Start Docker on Windows Home and Windows Pro Machine

    After installing docker, it doesn’t start automatically, you have to start it manually.

    • Search for docker, click on the app

    • After clicking on the app, you will see the docker icon on the windows status bar. If you don’t see it, click on the up arrow and you should see it.
    • When the docker icon stops blinking, then docker stabilized and is ready to use.
    • When you finish using docker, be sure to right-click the docker icon on the status bar, and click on quit, to quit the docker engine.
    • If you close docker without stopping the engine, the engine will continue to run in the background until you right-click the icon to quit the docker engine.

    After installing docker, you will get some initial instructions of how things work from docker documentation the first time you open docker app. Feel free to liberally use those instructions provided by docker to help you get started.

    Step 5: Use Docker for Data Science & Deploy to AWS

    If you are a data scientist using docker for the first time, you might be wondering how you could use docker for a data science project. I am one-step ahead of you. In this detailed blog post, I show you how to use docker for data science projects.

    If you are working in docker, you might be interested in launching your app online using AWS. Don’t worry, I got you covered. In this detailed blog post –> I cover How to Deploy Data Science APP to AWS ElasticBeanStalk using Docker

    If you have any questions or comments, let me know below.

  • Как установить docker compose на windows 10
  • Как установить dns сервер на windows 10
  • Как установить directx 12 на windows 10 64 bit
  • Как установить dmg шрифт на windows 10
  • Как установить directx 12 для windows 7 64 bit