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 modify the image file storage location of docker by win10

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains the "win10 how to modify the docker image file storage location", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "win10 how to modify the docker image file storage location" bar!

Remember: the storage location (local) of the image file pulled by docker from the server is modified. Is it the mirror source address (server)?

First

Docker under win10 has a visual operation interface and command line operation. After downloading docker-ce.exe, double-click will automatically complete it from start to finish. It is installed to C disk directory by default, that is, many default parameters or configuration files are in C disk directory. Although pc win10 does not have as much memory and storage as linux, it can still start two docker containers. Considering that disk C is a system disk, many image files may be pulled during the use of docker, so we need to modify the default image file storage address of docker.

Modify

1.docker info take a look at the current

two。 Manipulate and modify through the docker gui interface of the win10 taskbar

Select settings to enter the operation interface, check "advanced" first, and then add a line marked in red (note: the path is the path you want to change)

When you are finished, click the "apply" button directly, and docker service will restarting automatically. Then take a look at docker info again.

3. This will prove to be effective.

Take a look at the principle.

Whether through gui or command line, modify the corresponding parameter configuration by modifying daemon.json:

The default location of the configuration file on 1.Linux is / etc/docker/daemon.json

The default location of configuration files on 2.Windows is% programdata%\ docker\ config\ daemon.json

If you want to see this programdata directory on win10, you need to check to show hidden files. Under disk C, specific parameters and details of parameters can be found on the official website [https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file].

Thank you for your reading, the above is the content of "how win10 modifies docker's image file storage location". After the study of this article, I believe you have a deeper understanding of how win10 modifies docker's image file storage location, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Internet Technology

Wechat

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

12
Report