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 1. Filter, map, and reduce proc...
<br />We usually declare DOCTYPE in HTML in ...
Preface If you frequently access many different r...
YSlow is a page scoring plug-in developed by Yaho...
1. Reason I just needed to reinstall MySQL on a n...
Preface In order to meet the high availability of...
Table of contents 1. What is Function Anti-shake?...
Table of contents 1. Front-end control 1. In the ...
The time of VM Ware virtual machine centos is inc...
1. Naming conventions 1. Database names, table na...
Preface The file system is responsible for organi...
How to use CSS to control the arc movement of ele...
Problem: The null type data returned by mybatis d...
How to check where the metadata lock is blocked i...
There are three main ways of MySQL replication: S...