3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gitlab のお掃除スケジュール

Last updated at Posted at 2020-06-11

gitlab runner docker をお掃除しないと、ディクスが圧迫される問題

cronにお掃除スケジュールを登録

# m h  dom mon dow   command
0 3 * * * /usr/bin/docker container prune -f && /usr/bin/docker image prune -f && /usr/bin/docker volume prune -f && /usr/bin/docker network prune -f && /usr/bin/docker system prune -f

artifact file で、ディクスが圧迫される問題

artifactには、artifacts:expire_inを付けましょう

# omnibus-gitlab
sudo gitlab-rake gitlab:cleanup:orphan_job_artifact_files DRY_RUN=false

LFS filesやuploadsも必要があれば消す
https://docs.gitlab.com/ee/raketasks/cleanup.html

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?