Windows environment Docker installation

Table of contents

Steps to install Docker Desktop

Docker Desktop update WSL

Manual installation steps for WSL

Windows PowerShell

Pull (Pull) image

View downloaded images

Output "Hello Docker!"


Docker Desktop is a graphical desktop application for Windows officially provided by Docker, which makes it very simple to use Docker in a local environment.

Steps to install Docker Desktop

1. Go to the official Docker website: Download Docker Desktop | Docker

2. Select "Download for Windows" on the page to download the Docker Desktop installer.

3. Run the downloaded installer, and install according to the instructions of the installation wizard. During the installation process, you may need to grant administrator rights to the installer.

4. After the installation is complete, Docker Desktop will start automatically and display the Docker icon in the system tray. Click the icon, you can access the Docker control panel and start using Docker.

5. After the installation is complete, Docker is ready on your Windows 11 system, and you can run applications and services in Docker containers.

Docker Desktop update WSL

Manual installation steps for WSL

Manual installation steps for older versions of WSL | Microsoft Learn Step-by-step instructions for installing WSL manually (instead of using the wsl install command) on older versions of Windows. https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package

Windows PowerShell

Windows PowerShell is a more powerful, advanced command-line tool for system administration, task automation, and complex scripting.

Windows Terminal is a traditional command-line tool suitable for executing simple commands and batch files.

Pull (Pull) image

First open cmd, you can download the Docker image through the docker pull command. For example, if you want to pull the official Ubuntu mirror, you can run the following command:

docker pull ubuntu

View downloaded images

Use the docker images command to list all locally downloaded Docker images:

docker images

Output "Hello Docker!"

docker run ubuntu /bin/echo "Hello Docker!"

Guess you like

Origin blog.csdn.net/m0_67906358/article/details/131873269