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
Chatbots can save a lot of manual work and can be...
1. Data Deduplication In daily work, there may be...
Table of contents 1. Master-slave synchronization...
Table of contents 1. Virtual Host 1.1 Virtual Hos...
What is a file? All files are actually a string o...
What is MyCAT A completely open source large data...
Table of contents 1. Particle Effects 2. Load the...
To execute a shell command in Docker, you need to...
Table of contents Case scenario Solving the probl...
Table of contents Preface 1. The effect is as sho...
Preface In the development process, defining vari...
Preface Recently, due to work needs, I need to in...
Table of contents 01 Common Faults 1 02 Common Fa...
The first step is to install TypeScript globally ...
You must have inspiration to design a website. Goo...