結論
GitLab真的超吃資源,沒有優化的情況下,要佔用10.9G的RAM。只有自己用,現在RAM的價格,又跟黃金差不多。可能GitLab功能很強,現階段不適用。ChatGPT建議改用Gitea,就來試試看。
GitLab真的超吃資源,沒有優化的情況下,要佔用10.9G的RAM。只有自己用,現在RAM的價格,又跟黃金差不多。可能GitLab功能很強,現階段不適用。ChatGPT建議改用Gitea,就來試試看。
# 檢查 docker 狀態
df -h
docker system df
# 清理docker 空間
# Remove all unused data
docker system prune -a --volumes
# Remove build cache
docker builder prune -a
# Check again
df -h
# Stop Docker
sudo systemctl stop docker
# Edit Docker config
sudo nano /etc/docker/daemon.json
# add the following code in daemon.json
{
"data-root": "/new/docker/path"
}
# Create new directory
sudo mkdir -p /new/docker/path
# Move existing data (optional)
sudo rsync -aP /var/lib/docker/ /new/docker/path/
# Start Docker
sudo systemctl start docker