The company's service uses docker, and the disk man is found. Then execute the following command to get it done 1. Create a script file vi cleandocker.sh The content is as follows: #!/bin/sh echo "====================== start clean docker containers logs ===========================" logs=$(find /var/lib/docker/containers/ -name *-json.log) for log in $logs do echo "clean logs : $log" cat /dev/null > $log done echo "====================== end clean docker containers logs ===========================" 2. Authorize the script file chmod 755 cleandocker.sh 3. Execute the script ./cleandocker.sh This is the end of this article about how to clean up the docker /var/lib/docker/aufs/mnt directory. For more information about docker directory management, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: MySQL 8.0.18 installation and configuration graphic tutorial
>>: WeChat applet realizes the function of uploading pictures
Table of contents Since Vuex uses a single state ...
Today, CSS preprocessors are the standard for web...
Problem description: Error message: Caused by: co...
1. Background Although I have read many blogs or ...
Table of contents 1. Parent component passes valu...
Now let's summarize several situations of con...
This article shares the MySQL 5.7 installation an...
Preface Recently, a Java EE web project that has ...
Before installing Tomcat, install the JDK environ...
Through JavaScript, we can prevent hyperlinks fro...
When we preview PDF on the page, some files canno...
1. System environment The system version after yu...
There are two ways to configure multiple projects...
This article mainly introduces how to specify par...
Table of contents 1. mysqldump command to back up...