Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Docker on Windows

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, the editor introduces in detail "how to install Docker on Windows", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to install Docker on Windows" can help you solve your doubts.

Docker is an open source application container engine that is based on the Go language and conforms to the Apache2.0 protocol. Docker allows developers to package their applications and dependency packages into a lightweight, portable container, which can then be released to any popular Linux machine, and can also be virtualized.

System requirements

Windows 1064-bit: professional, Enterprise or Educational (build 17134 or later). The Hyper-V and Containers Windows features must be enabled. To run Client Hyper-V successfully on Windows 10, the following hardware prerequisites need to be met: 64-bit processor 4GB system memory with secondary address translation (SLAT) must have BIOS-level hardware virtualization support enabled in the BIOS setting.

Installation

Install Docker Desktop on Windows

1. Double-click Docker Desktop Installer.exe to run the installer.

If you have not downloaded the installer (Docker Desktop Installer.exe), you can download it from Docker Hub. It is usually downloaded to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your Web browser.

two。 When prompted, make sure that the enable Hyper-V Windows feature option is selected on the configuration page.

3. Follow the instructions on the installation wizard to authorize the installer and continue with the installation.

4. After the installation is successful, click close to complete the installation process.

5. If your administrator account is different from the user account, you must add the user to the docker-users group. Run computer management as an administrator, and then navigate to local users and groups > groups > docker-users. Right-click to add the user to the group. Log out and log back in for the changes to take effect.

Start

Docker Desktop does not start automatically after installation. To start Docker Desktop, search for Docker and select Docker Desktop in the search results.

When the whale icon in the status bar remains stable, the Docker desktop runs and can be accessed from any terminal window.

If the Whale icon is hidden in the notifications area, click the up arrow on the taskbar to display it.

After initialization is complete, Docker Desktop launches the getting started tutorial. This tutorial includes a simple exercise to build a sample Docker image, run it as a container, push it, and save it to Docker Hub.

Congratulations! You can now run Docker Desktop successfully on Windows.

If you want to rerun this tutorial, go to the Docker Desktop menu and select Learn.

Automatic update

Starting with Docker Desktop 3.0.0, updates to Docker Desktop are automatically provided as incremental updates to previous versions. When an update is available, Docker Desktop automatically downloads it to your computer and displays an icon indicating the availability of a newer version. Now all you need to do is click Update and restart from the Docker menu. This installs the latest update and restarts Docker Desktop for the changes to take effect.

Unloading

To uninstall Docker Desktop from a Windows machine:

From the Windows start menu, select Settings > applications > applications and Features. Select Docker Desktop from the applications and Features list, and then select Uninstall. Click Uninstall to confirm your selection. Uninstalling Docker Desktop destroys your computer's local Docker container and image and deletes files generated by the application.

Save and restore

You can use the following procedure to save and restore images and container data. For example, if you want to reset the VM disk, do the following:

Use docker save-o images.tar image1 [image2...] To save any images you want to keep. Using docker export-o myContainner1.tar container1 you want to keep the export container. Uninstall the current version of Docker Desktop and install another version, or reset your VM disk. Use docker load-I images.tar to reload previously saved images. Use docker import-I myContainer1.tar to create a file system image corresponding to the previously exported container.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report