2.6. Windows Docker installation

发布时间 :2025-10-25 12:31:05 UTC      

Docker is not a general-purpose container tool, it relies on the existing and running Linux kernel environment.

Docker essentially creates an isolated file environment under Linux that is already running, so it performs almost as efficiently as the deployed Linux host.

Therefore, Docker must be deployed on the system of the Linux kernel. If other systems want to deploy Docker, they must install a virtual Linux environment.

Image0

The way to deploy Docker on Windows is to install a virtual machine first and run Docker in the virtual machine where the Linux system is installed.

2.6.1. Win10 system

Docker Desktop is the official installation of Docker on Windows 10 and macOS operating systems, and this method still belongs to the method of installing Linux in the virtual machine before installing Docker.

Official download address of Docker Desktop: https://hub.docker.com/editions/community/docker-ce-desktop-windows

注意: This method is only applicable to Windows 10 operating system Professional Edition, Enterprise Edition, Educational Edition and some Home Edition!

Install Hyper-V

Hyper-V is a virtual machine developed by Microsoft, similar to VMWare or VirtualBox, and is only applicable to Windows 10. This is the virtual machine used by Docker Desktop for Windows.

However, once this virtual machine is enabled, QEMU, VirtualBox, or VMWare Workstation 15 or later will not be available! If you have to use other virtual machines on your computer (such as simulators that you must use to develop Android applications), please do not use Hyper-V!

Turn on Hyper-V

Image1

Programs and functions

Image2

Enable or disable the Windows feature

Image3

Check Hyper-V

Image4

You can also enable Hyper-V through the command, right-click the start menu and run PowerShell as an administrator, execute the following command:

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

Install Docker Desktop for Windows

Click Get started with Docker Desktop And download the version of Windows, if you are not already logged in, you will be required to register and log in:

Image5

Run the installation file

Double-click the downloaded Docker for Windows Installer installation file, Next all the way, and click Finish to complete the installation.

Image6

Image7

When the installation is complete, Docker starts automatically. A little whale icon will appear on the notification bar. Image8 Which means that Docker is running

Three icons also appear at the table, as shown in the following figure:

We can execute docker version on the command line to check the version number and docker run hello-world to load the test image test.

If it doesn’t start, you can search Docker on Windows to start it:

Image9

After startup, you can also see the little whale icon on the notification bar:

Image10

If you encounter an error caused by WSL 2 during startup, install WSL 2 .

After installation, you can open PowerShell and run the following command to check whether it is running successfully:

docker run hello-world

The following message should appear after a successful run:

Image11

2.6.2. Win7, win8 system

Win7, win8, etc. need to be installed using docker toolbox. In China, you can use Aliyun’s image to download it. Download address: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

Installation is relatively simple. Double-click to run, click next, and you can check the components you need:

Image12

Docker toolbox is a toolset that mainly includes the following:

  • Docker CLI-client, used to run the docker engine to create images and containers.

  • Docker Machine-allows you to run docker engine commands from the command line of Windows.

  • Docker Compose-used to run the docker-compose command.

  • Kitematic-this is the GUI version of Docker.

  • Docker QuickStart shell-this is a command line environment with Docker configured.

  • Oracle VM Virtualbox-Virtual machine.

Click install directly after the download is completed. After the installation is successful, three icons will appear at the desk, as shown in the following figure:

Image13

Click the Docker QuickStart icon to start the Docker Toolbox terminal.

If the system displays a User Account Control window to run VirtualBox to modify your computer, select Yes.

Image14

$symbol then you can enter the following command to execute.

$ docker run hello-world
 Unable to find image 'hello-world:latest' locally
 Pulling repository hello-world
 91c95931e552: Download complete
 a8219747be10: Download complete
 Status: Downloaded newer image for hello-world:latest
 Hello from Docker.
 This message shows that your installation appears to be working correctly.

 To generate this message, Docker took the following steps:
  1. The Docker Engine CLI client contacted the Docker Engine daemon.
  2. The Docker Engine daemon pulled the "hello-world" image from the Docker Hub.
     (Assuming it was not already locally available.)
  3. The Docker Engine daemon created a new container from that image which runs the
     executable that produces the output you are currently reading.
  4. The Docker Engine daemon streamed that output to the Docker Engine CLI client, which sent it
     to your terminal.

 To try something more ambitious, you can run an Ubuntu container with:
  $ docker run -it ubuntu bash

 For more examples and ideas, visit:
  https://docs.docker.com/userguide/
Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.