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
{
"storage-driver": "devicemapper",
"storage-opts": [
"dm.basesize=10G"
]
}
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.