Преглед изворни кода

Merge pull request #668 from FanchTheSystem/add_docker_prune

Add docker prune
pull/671/head
Slavi Pantaleev пре 5 година
committed by GitHub
родитељ
комит
652b4fba35
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 измењених фајлова са 14 додато и 0 уклоњено
  1. +6
    -0
      docs/maintenance-and-troubleshooting.md
  2. +4
    -0
      roles/matrix-common-after/tasks/main.yml
  3. +4
    -0
      roles/matrix-common-after/tasks/run_docker_prune.yml

+ 6
- 0
docs/maintenance-and-troubleshooting.md Прегледај датотеку

@@ -33,6 +33,12 @@ matrix_synapse_root_log_level: "INFO"


Re-run the playbook after making these configuration changes. Re-run the playbook after making these configuration changes.


## Remove unused Docker data

You can free some disk space from Docker, see [docker system prune](https://docs.docker.com/engine/reference/commandline/system_prune/) for more information.
```bash
ansible-playbook -i inventory/hosts setup.yml --tags=run-docker-prune
```


## Postgres ## Postgres




+ 4
- 0
roles/matrix-common-after/tasks/main.yml Прегледај датотеку

@@ -11,3 +11,7 @@
- import_tasks: "{{ role_path }}/tasks/dump_runtime_results.yml" - import_tasks: "{{ role_path }}/tasks/dump_runtime_results.yml"
tags: tags:
- always - always

- import_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
tags:
- run-docker-prune

+ 4
- 0
roles/matrix-common-after/tasks/run_docker_prune.yml Прегледај датотеку

@@ -0,0 +1,4 @@
---

- name: Run Docker System Prune
command: "{{ matrix_host_command_docker }} system prune -a -f"

Loading…
Откажи
Сачувај