Managing Disk Space

If you run out of disk space while running Gitea with Docker here are some tips on reclaiming space:

  • Run df -h --total / to check your disk space
  • Purge or archive old backups to reclaim space
  • Identify the size of and clean-up your Docker overlay network
  • Run “Garbage collect all repositories” from Gitea’s Admin Dashboard
  • Use the docker system prune -a -f to remove unused images, et cetera
  • Look for log files you no longer need and archive and/or disable them
  • Consider using docker-gc-cron to keep overhead to a minimum
  • Look at simply adding more storage space

Source: https://git.habd.as/comfusion/high-tea#managing-disk-space