diff --git a/playbooks/roles/gitea/tasks/main.yaml b/playbooks/roles/gitea/tasks/main.yaml index 077f05df06..89b03d8812 100644 --- a/playbooks/roles/gitea/tasks/main.yaml +++ b/playbooks/roles/gitea/tasks/main.yaml @@ -45,6 +45,9 @@ shell: cmd: docker-compose up -d --timeout 60 chdir: /etc/gitea-docker/ +- name: Run docker prune to cleanup unneeded images + shell: + cmd: docker image prune -f - name: Check if root user exists uri: url: "https://localhost:3000/api/v1/users/root" diff --git a/playbooks/roles/haproxy/tasks/main.yaml b/playbooks/roles/haproxy/tasks/main.yaml index eeae498065..f1927f8918 100644 --- a/playbooks/roles/haproxy/tasks/main.yaml +++ b/playbooks/roles/haproxy/tasks/main.yaml @@ -32,3 +32,6 @@ shell: cmd: docker-compose up -d chdir: /etc/haproxy-docker/ +- name: Run docker prune to cleanup unneeded images + shell: + cmd: docker image prune -f diff --git a/playbooks/roles/registry/tasks/main.yaml b/playbooks/roles/registry/tasks/main.yaml index 39c092f2a2..4126e8dc52 100644 --- a/playbooks/roles/registry/tasks/main.yaml +++ b/playbooks/roles/registry/tasks/main.yaml @@ -49,6 +49,9 @@ shell: cmd: docker-compose up -d chdir: /etc/registry-docker/ +- name: Run docker prune to cleanup unneeded images + shell: + cmd: docker image prune -f - name: Install cron to garbage collect the registry daily cron: diff --git a/playbooks/roles/zuul-preview/tasks/main.yaml b/playbooks/roles/zuul-preview/tasks/main.yaml index 2dba22e8c0..9b3afc839a 100644 --- a/playbooks/roles/zuul-preview/tasks/main.yaml +++ b/playbooks/roles/zuul-preview/tasks/main.yaml @@ -15,3 +15,6 @@ shell: cmd: docker-compose up -d chdir: /etc/zuul-preview-docker/ +- name: Run docker prune to cleanup unneeded images + shell: + cmd: docker image prune -f