Skip to content

Commit 8b45e7e

Browse files
authored
Remove grafana image before re-deploying (#566)
1 parent e3ff406 commit 8b45e7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

playbooks/start-collector.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
- name: Clean dangling images
6666
shell: docker image prune -f
6767

68+
- name: Stop all running containers
69+
shell: docker stop $(docker ps -q)
70+
71+
- name: Remove the grafana/grafana image
72+
shell: docker rmi grafana/grafana
73+
6874
- set_fact: collector_version="{{ lookup('env','COLLECTOR_VERSION') }}"
6975

7076
- name: Clone the collector repo

0 commit comments

Comments
 (0)