Increase Docker Disk Space

User
Your Docker install has only 3881248 available disk space, less than 5000000 warning level (90% used). Please increase disk image size.
Assistant
You're running low on disk space for Docker. Here’s how you can increase the available disk space for Docker, depending on your setup:

### **For Windows (Docker Desktop)**
1. **Open Docker Desktop**
– Click on the **Settings** (gear icon) in the top-right corner.

2. **Increase Disk Size**
– Navigate to **Resources → Advanced**.
– Increase the **Disk image size** (e.g., set it to at least 10 GB).

3. **Apply & Restart**
– Click **Apply & Restart** for the changes to take effect.

### **For Linux (Docker Daemon)**
1. **Check Docker Storage Usage**
Run:

docker system df

This will show how much space Docker is consuming.

2. **Increase Disk Size (If using `overlay2` or `devicemapper`)**
If using `overlay2`, extend the partition where Docker stores data (`/var/lib/docker`).
If using `devicemapper`, increase the storage pool size:

sudo lvextend -L+10G /dev/docker-vg/docker-lv
   sudo resize2fs /dev/docker-vg/docker-lv

3. **Clean Up Unused Data**
Run:

docker system prune -a

This removes all unused images, containers, and networks.

### **For Mac (Docker Desktop)**
1. **Open Docker Desktop → Settings**
2. **Go to Resources → Advanced**
3. **Increase the Disk Size**
4. **Apply & Restart Docker**

Let me know your setup if you need more specific steps! 🚀

Leave a Comment

Your email address will not be published. Required fields are marked *