Docker Desktop Latest Version

2/13/2022by admin

Docker Desktop provides an installation wizard, a management UI, and several other utilities for improving deployment. Docker Desktop is supported on Windows 10 and Mac. It comes with the Docker Engine CE or EE depending on the product tier we choose. Docker targets its enterprise product suite toward production environments. This includes the. Docker Desktop includes Docker Engine, the Docker CLI client, Docker Compose, and other tools that are helpful when using Docker with Amazon ECS. For more information about how to install Docker Desktop on your preferred operating system, see Docker Desktop overview. On windows, you can check this registry entry: Computer HKEYLOCALMACHINE SOFTWARE Microsoft Windows CurrentVersion Uninstall Docker Desktop But probably a lot easier if you right click on the windows icon in the lower left corner, pick Apps and Features and click Docker Desktop in the list on the right hand side of the new window.

  1. Popular container company Docker has updated its subscription plans, and no longer allows enterprise customers to use the free version. Current users (with at least 250 employees or $10 million in.
  2. Click Download update When you are ready to download the update. This downloads the update in the background. After downloading the update, click Update and restart from the Docker menu. This installs the latest update and restarts Docker Desktop for the changes to take effect.

Modern project development often requires developers to understand not one or two core technologies, but a whole range of them. It can involve different programming languages, structures, and databases or cloud operating systems. However, one of the main challenges is scaling and configuring the interactions and dependencies of these components between themselves.

To solve such tasks, companies and developers often resort to container technology, which integrates and packages all kinds of technologies, programs, and code into one ecosystem in the form of containers. One of the most popular solutions in this area is Docker Containers, which has such advantages:

  • isolate environment,
  • scaling options,
  • dependency management,
  • host autonomy,
  • simple software layout.

At the same time, we should note that the basic operating system for Docker is Linux. However, for developers who prefer Windows, some solutions use virtual machine technologies - Docker for Windows and Docker ToolBox. But their use is not always practical, as virtual machines often require additional system resources and more advanced configuration options for interaction with the main operating system.

There is another approach for such cases that uses Windows Subsystem for Linux (WSL) and allows running Linux programs, including Docker, on the Windows platform.

WSL aspect and configurations

Windows Subsystem for Linux provides functionality for Linux files, scripts, and programs in Windows 10 and Windows Server 2019. WSL does not use virtual machines but runs a compatibility layer at the system level. It provides a high integration level with the main system and allows to use most programs from repositories for Linux distributions without significant system resources.

Let’s highlight the main WSL features and aspects of its application:

  • Uses only the latest Windows 10 revisions and provides the ability to run multiple Linux distributions and associated programs.
  • WSL is not a complete Linux kernel, but just a compatibility functionality for running Linux programs. Therefore, for low-level support, it requires other tools such as virtual machines.
  • WSL can be used effectively for simple and not heavily loaded high-level programs or scripts, for example, for the bash-environment.

In this case, for complete integration of Docker with the Windows platform, we will use the latest version of the program - WSL2. It will allow avoiding the stage of creating a private virtual machine for Docker and therefore simplify its use due to system resources and data synchronization between different systems.

Complete installation procedure of the WSL2 (after this simply WSL) is fully described in the official documentation and usually does not cause any problems. Therefore, below we will only focus on the main aspects of installation and configuration.

The main steps in WSL configuration for Windows include the following:

  • Checking the operating system build version.
  • Creating or logging on to Microsoft Account and joining the Windows Insider Program.
  • Enabling software options and operating system settings:
    • WSL and virtual machine platform support service.
    • Hyper-V virtualization services (required for Docker for Windows).
  • Selection of the Linux distribution and its further configuration.
  • Upgrades of Linux components to required or current versions.

Next, we will show and describe these steps briefly.

There are two ways to check the version of the operating system Windows 10. The first is to use the Windows interface and execute the winver command on the run command line. The second uses the command-line interface (or PowerShell terminal) and the execution of the systeminfo command. As a result, you will get the operating system version and it should be Windows Pro 10, higher than the 18917 build or Windows Pro 10 Insider version as in our case.

Note that Windows 10 must be PRO version as for other ones, the Hyper-V virtualization service will not be configured, and the Docker for Windows will not work.

Once the operating system version matches the requirements, you will need to join the Windows Insider Program. You can do this by opening the next options:

  1. Select Settings>Update & Security.
  2. Select the Windows Insider Program tab.
  3. Login with a Microsoft Account.
  4. Press the Run button and select the Fast option.

Note that if you do not get the above option, you need to become an administrator or check the operating system version again.

Next, we will enable necessary services and options in the Turn features on or off section as shown below :

The same can be done with the following commands in a PowerShell terminal.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All

Following that, we will use the Microsoft Store and choose one of the free versions of Linux. In our case, it will be a popular Ubuntu 18.04 LTS image.

Before running the downloaded image, let's make sure that we are using the latest, which is the second version of the WSL. To check this, let's enter the commands in the PowerShell terminal:

The second command is only required if you have installed the first version of WSL. Differences between versions and how to manage WSL images are well described in documentation and tutorials.

Following that, we will launch WSL from the Start menu, and after initial configuration, we'll get the Ubuntu terminal as shown below:

Finally we are ready to install Docker.


Docker Desktop with WSL and Docker-CE

Currently, there are two options for installing Docker on Windows 10:

  • Using Docker Desktop for Windows with WSL2 backend.
  • Using WSL2 tools to install the Linux version of Docker-CE.


The first option is appropriate for developers who build their projects on Windows platform and need native Linux kernel support for Docker. That makes it possible to run containers without emulation and use the Linux workspaces. Also, we should mention that Docker with WSL2 makes the system resources (specifically, memory) less demanding since it uses the dynamic memory allocation function.

The second option provides functionality of the Linux environment, which gives an advantage for projects using its tools and repositories. Note that Docker-CE does not require a basic desktop version and the Hyper-V service. Therefore, this option allows you to run other virtual machines together with WSL for other different tasks.

In general, the usage of Docker-CE and WSL does not differ from the typical Docker usage on Linux systems. Therefore, we will only focus on configuration and customization of Docker Desktop being a popular tool for managing containers on the Windows platform.

Docker Desktop with WSL2 backend

Let's install the latest version of Docker Desktop from the official website. To download the install package and get started, you will need to log in or create a new account on Docker Hub.

Follow the instructions of the installer during the installation process. The process itself takes some time, following that, the computer will require a restart to enable the Hyper-V service.

If the installer reports a firewall or antivirus blocking during the installation, you will need to add port 445 to the firewall exceptions or rules.

After installation and rebooting, the Docker Desktop will automatically launch. During the first start, you will need to enter Docker Hub Credentials to initialize all involved services.

Once the installation is complete, the Docker Whale icon will appear in the taskbar, and by clicking on it, we can configure it further.

Next, we will initialize the WSL2 backend functionality in the installed application. To do this, select Settings from the menu and activate WSL2 backend engine on the General tab.

After applying these actions, you will need to reboot the Docker application and then confirm the activation of WSL integration for Docker Desktop.

Next, you should activate the previously installed WSL Ubuntu 18.04 LTS image in Docker settings under the Resourcestab.

After implementing the changes, let us check to see if everything has been installed correctly. On the PowerShell terminal using the standard docker version command:

As a result, we can see that Docker Desktop has been installed correctly and is ready for use. But before connecting, let's highlight some features of using it on a Windows system:

Version
  • If you want to connect Windows or Linux containers, you should change the corresponding option in Docker settings as shown below:
  • Project files should be stored in proper folder and environment to avoid case-sensitive errors in the Windows project. One of the solutions that will help to use Windows project files in a Linux environment is the mklink command which creates a symbolic link to the project folder.
    mklink /D C:project_directory wsl$ubuntu-18.03homeuserproject_directory
  • Local domains should be registered in their respective host's file. Windows 10 host files are located in: C:WindowsSystem32driversetchosts

Other features and options for using Docker on Windows are generally the same as in the Linux version.

Next, let's run the simplest examples to demonstrate the features of Docker Desktop with WSL.


Running Docker on Windows

To demonstrate Docker functionality, we will use Docker Hub, which contains most ready-to-use containers.

As an example of Docker's workability, we will take the simplest container that displays the phrase 'Hello-World'. To do this, we need to run two commands on the command line or the PowerShell terminal.

docker pull hello-world

docker run hello-world

As we can see, the messages are displayed, and Docker Desktop works correctly. Next, let’s try to run the Windows Server container from its official image. To do this, let's run the following commands:

The first command downloads and runs the associated container, while the second command runs it with parameters that will output the container in the command line environment as shown below:

As a result, we have the Windows operating system running in the container. For test, we've also executed the standard command dir and tasklist and everything works correctly.

Now, we will create our container on the Docker Hub with the output of the test phrase at its startup. To do this, first of all, let's check the downloaded containers.

docker images

From the container ID, we will create a new one in our repository on Docker Hub with the following command:

After executing this command, a new container will be created. We will check its performance by running it from the PowerShell terminal using the command:

docker run <user>/windows-test-image

As we can see, the container is working.

Docker Desktop Latest Version Windows 10

Summary

In this article, we showed how to use containers using Docker on a Windows platform. We walked through the installation and configuration features of the Windows Subsystem for Linux as well as Docker for Windows systems. Perhaps this information will help and simplify the use of container technology with Docker and Windows.

Have you previously installed Docker Toolbox, Docker Machine, or VirtualBox?

Docker for Windows now requires Microsoft’s Hyper-V. Once enabled, VirtualBox will no longer be able to run virtual machines (your VM images will still remain). You can still use docker-machine to manage remote hosts.

You have the option to import the default VM after installing Docker for Windows from the Settings menu in the System Tray.

Docker for Windows enables Hyper-V if necessary; this requires a reboot.

Requirements

Docker for Windows runs on 64-bit Windows 10 Pro, Enterprise, and Education; 1511 November update, Build 10586 or later. Docker plans to support more versions of Windows 10 in the future.

Installation

  1. Download Docker.
  2. Double-click InstallDocker.msi to run the installer.
  3. Follow the Install Wizard: accept the license, authorize the installer, and proceed with the install.
  4. Click Finish to launch Docker.
  5. Docker starts automatically.
  6. Docker loads a “Welcome” window giving you tips and access to the Docker documentation.

That’s it!

Verification

The whale in the status bar indicates a running (and accessible via terminal) Docker instance.

Open PowerShell or your favorite Windows terminal (e.g., Command prompt) and enter docker run hello-world.

Windows prompts you for access every time Docker starts, allowing Docker to manage the Hyper-V VM’s. The first time Docker starts, you may need to provide the token from the Beta invitation email. When initialization completes, select About Docker from the notification area and verify you have the latest version.

Docker Desktop For Windows Latest Version

From PowerShell (or your favorite Windows terminal), check the versions of docker, docker-compose, and verify your installation:

Before you stop, let’s test a Dockerized webserver; from PowerShell or cmd.exe, run:

Docker Desktop Latest Version For Windows 10

If your host does not already have it, Docker downloads nginx from Docker Hub and starts it. As soon as the download completes, point your web browser to http://docker to view the start page. You should see:

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.Commercial support is available at nginx.com.

Thank you for using nginx.

Common Pitfalls

CPU

If your CPU does not support virtualization, or if you do not have a 64-bit CPU, you cannot run Docker locally.

Operating System

If you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows.

You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later. Alternately, you do have the option to upgrade.

Next: Install Docker on Linux
Requirements and things to know before installing Docker for Linux.

Comments are closed.