Help Center/
Intelligent EdgeFabric/
FAQs/
Edge Application FAQs/
How Do I Control the Disk Space Occupied by a Container Engine?
Updated on 2022-02-21 GMT+08:00
How Do I Control the Disk Space Occupied by a Container Engine?
You can control the disk space occupied by a container engine by editing the daemon.json file.
Prerequisites
A CentOS is used.
Procedure
Run the following command to open the daemon.json file:
vi /etc/docker/daemon.json
Set storage-driver to devicemapper and set dm.basesize under storage-opts to the maximum disk space that Docker can use. In the following example, the disk space of the container engine is limited to 10 GB.
{ "storage-driver": "devicemapper", "storage-opts": [ "dm.basesize=10G" ] }
Parent topic: Edge Application FAQs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot