List DDEV Projects Ubuntu
August 7, 2025 Β· AI Conversations
ddev list
This will display all DDEV projects that have been started or are currently available in your DDEV global project list, with information such as:
– Project name
– Project type (e.g., `php`, `laravel`, `wordpress`)
– Project directory
– Status (e.g., `running`, `stopped`, `not found`)
### Example Output:
NAME TYPE LOCATION STATUS
my-site wordpress /home/user/projects/my-site running
laravel-app laravel /home/user/code/laravel-app stopped
### Notes:
– If you've deleted or moved a folder manually without using `ddev stop` or `ddev delete`, it may still show up as `not found`.
– Projects are tracked via the global DDEV configuration file: `~/.ddev/global_config.yaml` and individual `.ddev` directories inside each project folder.
Let me know if you want to filter, clean up, or script this list!
df -h
### Explanation:
– `df` = disk free
– `-h` = human-readable format (e.g., GB/MB)
### Sample Output:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 100G 70G 27G 73% /
tmpfs 3.9G 2.0M 3.9G 1% /dev/shm
If you want to check **total disk space used by DDEV projects**, you can run:
du -sh ~/.ddev /path/to/projects/*
Or if all projects are inside a single folder like `~/projects`, then:
du -sh ~/projects/*
Let me know if you want to check Docker volume usage by DDEV containers too.
### πΉ 1. Total Docker Disk Usage:
docker system df
### Example Output:
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 10 4 3.14GB 2.1GB (66%)
Containers 8 3 1.25GB 800MB (64%)
Local Volumes 12 10 4.50GB 2.2GB (48%)
Build Cache 0 0 0B 0B
### πΉ 2. List Volumes (DDEV uses these for project data):
docker volume ls
To check space used by each volume:
docker system df -v
This will show volume names (like `ddev-myproject-mariadb`) and their sizes.
—
### πΉ 3. Clean Unused Docker Resources (optional):
If you want to **free space**, use:
docker system prune
Or for a deep clean:
docker system prune -a --volumes
β οΈ **Warning:** This will delete **all unused containers, networks, images, and volumes**. Donβt run this unless youβre sure.
Let me know if you want to analyze per DDEV project or clean selectively.
—
### π§ **If you're using Docker Desktop (Ubuntu with GUI)**
#### β
Step 1: Increase Docker Disk Image Size
1. Open **Docker Desktop**.
2. Go to **Settings β Resources β Advanced**.
3. Increase the **Disk image size** (e.g., from 64GB to 128GB).
4. Click **Apply & Restart**.
> This resizes the Docker virtual disk used to store images, volumes, containers, etc.
—
### π§ **If you're using Docker Engine (CLI-based install on Ubuntu server/terminal only)**
#### β Step 1: Clear unused resources
docker system prune -a --volumes
> β οΈ Warning: This removes all **stopped containers, unused volumes, and dangling images**. Be cautious.
#### β
Step 2: Check where Docker stores data
By default, Docker stores data in:
/var/lib/docker
Check its usage:
sudo du -sh /var/lib/docker
—
### π‘ Optional: Move Docker storage to another disk (advanced)
If you want to **permanently move Docker storage** to another partition with more space:
1. Stop Docker:
sudo systemctl stop docker
2. Move data:
sudo mv /var/lib/docker /mnt/bigger-disk/docker
3. Create a symlink:
sudo ln -s /mnt/bigger-disk/docker /var/lib/docker
4. Restart Docker:
sudo systemctl start docker
—
Let me know which setup you're using (Docker Desktop or pure Docker CLI), and I can guide you precisely.
docker installed via ddev
—
### π§Ό Step 1: Clean up Docker to free space
This is safe and effective:
docker system prune -a --volumes
– `-a`: remove **all unused** images (not just dangling)
– `–volumes`: remove **unused volumes**
Confirm with `y` when prompted.
—
### π Step 2: Check space used by Docker
docker system df -v
This will show how much space is used by:
– Images
– Containers
– Volumes
You can remove specific large volumes/images if needed.
—
### π οΈ Step 3: Increase Docker disk space (if `/var/lib/docker` is almost full)
#### Option A: Resize partition (if Docker is on a small disk)
Run:
df -h /var/lib/docker
If the mount point (like `/`) is nearly full, consider:
– Resizing the partition (requires external disk or LVM setup)
– Or moving Docker data to a larger partition (recommended)
—
### π Step 4: Move Docker storage to another disk (optional but powerful)
1. **Stop Docker**:
sudo systemctl stop docker
2. **Create new location** (e.g. on `/mnt/bigdisk/docker`):
sudo mkdir -p /mnt/bigdisk/docker
sudo rsync -aP /var/lib/docker/ /mnt/bigdisk/docker
3. **Point Docker to the new location**:
Edit Docker config:
sudo nano /etc/docker/daemon.json
Add:
{
"data-root": "/mnt/bigdisk/docker"
}
4. **Restart Docker**:
sudo systemctl start docker
5. **Verify**:
docker info | grep "Docker Root Dir"
It should show `/mnt/bigdisk/docker`.
—
Let me know if you want help checking what's taking space (images/volumes) or need guidance creating a mount for a new disk.
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 37G 32G 2.7G 93% /
admin1@PC-274:~/ddevprojects/concrete-cms$
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 37G 32G 2.7G 93% /
Your **root partition (`/`) is 93% full**, leaving only **2.7 GB available**, which is **why DDEV and Docker are warning you**.
—
### π§ Fix Options
#### β Option 1: **Free Up Space on `/` (Quickest & Easiest)**
Run the following to identify and remove junk:
##### 1. Show top 10 largest directories:
sudo du -hxd1 / | sort -hr | head -n 10
##### 2. Clean APT cache:
sudo apt-get clean
##### 3. Remove old Docker data:
docker system prune -a --volumes
##### 4. Remove unused packages:
sudo apt-get autoremove
—
#### β Option 2: **Move Docker Storage to Another Drive or Partition**
If you have a second disk or external storage:
1. **Pick a larger partition (e.g. `/mnt/dockerdata`)**
2. Move Docker's data:
sudo systemctl stop docker
sudo mkdir -p /mnt/dockerdata
sudo rsync -aP /var/lib/docker/ /mnt/dockerdata/
3. **Point Docker to new location**:
sudo nano /etc/docker/daemon.json
Add:
{
"data-root": "/mnt/dockerdata"
}
4. **Restart Docker**:
sudo systemctl start docker
5. **Check**:
docker info | grep "Docker Root Dir"
—
#### π§ͺ Optional: Delete Large Logs or Unused Snap Packages
sudo journalctl --disk-usage
sudo journalctl --vacuum-time=3d
du -sh /var/lib/snapd
sudo snap list --all | awk '/disabled/{print $1, $2}' | while read snapname version; do sudo snap remove "$snapname" --revision="$version"; done
—
Would you like me to guide you step-by-step in choosing which folders to clean up right now?
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 37G 32G 2.7G 93% /
free up space
—
### β
**Step 1: Clean Docker Data**
This will remove all unused images, containers, networks, and volumes:
docker system prune -a --volumes
Confirm with `y` when prompted.
This can easily free up several gigabytes.
—
### β
**Step 2: Clean APT Cache**
Free space used by cached `.deb` files:
sudo apt-get clean
—
### β
**Step 3: Remove Orphaned Packages**
Unused packages still hanging around?
sudo apt-get autoremove
—
### β
**Step 4: Clear Old System Logs**
System logs can pile up in `/var/log` and journald.
sudo journalctl --vacuum-time=5d
This removes logs older than 5 days.
—
### β **Step 5: Check Top Space Consumers**
See which directories are using the most space:
sudo du -hxd1 / | sort -hr | head -n 10
You might see big folders like `/var`, `/home`, or `/snap`. From here you can drill down further, e.g.:
sudo du -hxd1 /var | sort -hr | head -n 10
—
### β **Step 6: Clean Unused Snap Versions (if using Snap)**
If you're using Snap (often enabled on Ubuntu), remove old versions:
sudo snap list --all | awk '/disabled/{print $1, $2}' | while read snapname revision; do sudo snap remove "$snapname" --revision="$revision"; done
—
### β Bonus: Reboot to Clear Temporary Cache
sudo reboot
This may clear temporary system files as well.
—
After that, re-check space:
df -h /
Let me know if you want help **analyzing big folders** or **offloading Docker data** to another disk.
—
### β **If installed via `snap` (most common on Ubuntu):**
sudo snap remove skype
—
### β **If installed via `.deb` package (from Skype website):**
sudo apt remove skypeforlinux
sudo apt autoremove
—
### β **If unsure how it was installed, check both:**
1. **Check snap:**
snap list | grep skype
2. **Check apt:**
dpkg -l | grep skype
Then remove it using the appropriate command above.
—
Let me know if you also want to clean config/cache files left behind.
—
### β **Step 1: Update package list**
sudo apt update
—
### β **Step 2: Upgrade installed packages**
sudo apt upgrade -y
—
### β
**(Optional but recommended) Step 3: Full distribution upgrade**
This will upgrade packages that require removing old ones or installing new dependencies:
sudo apt full-upgrade -y
—
### β **Step 4: Remove unused packages**
sudo apt autoremove -y
—
### β **Step 5: Clean package cache**
sudo apt clean
—
### π **Optional: Reboot if a kernel or system package was updated**
sudo reboot
Let me know if you want to update from Ubuntu 22.04 to a newer version (e.g., 24.04), which is a different process.