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"
    ]
}

Edge Application FAQs FAQs

more