编程知识 cdmana.com

What if the disk space is full when running the docker container?

In the high concurrency scenario, the author has developed it , Simple to offer 、 Stable 、 Extensible delayed message queuing framework , It has precise timing task and delay queue processing function . Since the open source for more than half a year , It has successfully provided precise timing scheduling scheme for more than ten small and medium-sized enterprises , It has withstood the test of production environment . In order to benefit more children's shoes , Now give the open source framework address :

https://github.com/sunshinelyz/mykit-delay

PS: Welcome to Star Source code , It's fine too pr Your blazing code .

Write it at the front

lately , A reader told me , His Docker and K8S Environment is built on Windows On the system . and Windows The system will Docker The image file is downloaded to by default C disc , A long time ,Docker Images take up more and more disk storage space , Lead to C There is not enough storage space on the disk . Listen to my partner , first time , What I think of is going to be Docker The default image storage directory is migrated to other drive letters , That's how it works C Lack of disk space . Do as you say , So , Then there is the sharing of this article !! The article and what it takes to build the environment yml The document has been included in :https://github.com/sunshinelyz/technology-binghe and https://gitee.com/binghe001/technology-binghe . If the document is of some help to you , Don't forget to give it Star Oh !

How to move Docker Image directory

How I'm going to migrate Docker The process of mirroring directories is summarized , The partners follow the steps below , You can migrate Docker Mirror Directory !!

1. stay D Disk to create a storage docker Virtual machine folder , As shown in the figure below :

2. Once it's created , Find the one in the bottom right corner of the table docker Icon , Right click on it , choice settings, open docker Setting interface of .

3. And then in docker Click on the settings interface of Resources Under Options ADVANCED set an option , Advanced settings .

4. In advanced settings , We can see that there is a disk image location, The storage location of the hard disk image . The default is in C disc , Click next to browse Button

5. The folder selection window will pop up at this time , Find this computer in turn ->D disc ->docker Folder , Then click OK . Then go back to the settings screen , You will see that the location of the image file becomes the folder we set up . Click... In the lower right corner of the settings interface apply Application settings .

6. After selection , Click on the Apple&Restart Button restart Docker.

7. After restart , We turn on D Discoid docker Under the DockerDesktop Folder , Will find docker The virtual machine file of has been transferred to this directory . As shown in the figure below . In the previous experience, we have said , stay windows On the platform ,docker It's through hyper-v Open one docker Virtual machines to provide docker service . So as you download more images , This docker Image files will get bigger and bigger . So you must clean up the unused ones in time docker Images in virtual machines .

thus , The whole migration process is over , Isn't that easy ?

Okay , That's all for today , I'm glacier , See you next time ~~

This article is from WeChat official account. - Glacier Technology (hacker-binghe)

The source and reprint of the original text are detailed in the text , If there is any infringement , Please contact the yunjia_community@tencent.com Delete .

Original publication time : 2020-12-03

Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .

版权声明
本文为[glacier]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224160737114y.html

Scroll to Top