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-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly shows you "how to install Docker on Windows", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install Docker on Windows" this article.

Background

Windows's Docker desktop is the community version of Microsoft Windows's Docker. You can download the Docker Desktop for Windows from Docker Hub. This page contains information about installing Docker Desktop on Windows 10 Pro,Enterprise and Education. If you want to find information about installing Docker Desktop on Windows 10 Home.

Download address:

Https://hub.docker.com/editions/community/docker-ce-desktop-windows/

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 with secondary address translation (SLAT)

4GB system memory

BIOS-level hardware virtualization support must be enabled in the BIOS settings.

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.

The above is all the contents of the article "how to install Docker on Windows". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Servers

Wechat

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

12
Report