Increase Docker Disk Space
February 17, 2025 · AI Conversations
—
### **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! 🚀