Merge "Clean up leftover mount point after docker stop." into stable/stein
This commit is contained in:
commit
4dac4dc33e
@ -117,6 +117,16 @@ outputs:
|
||||
package:
|
||||
name: docker
|
||||
state: absent
|
||||
- name: Get the list of directory mounted under /var/lib/docker/ orderer.
|
||||
shell: |
|
||||
mount | awk '/\/var\/lib\/docker\/[^/]+\// {print $3}';
|
||||
mount | awk '/\/var\/lib\/docker\/[^/]+$/ {print $3}';
|
||||
register: unmounted_dirs
|
||||
- name: Unmount those directories
|
||||
mount:
|
||||
path: "{{ item }}"
|
||||
state: unmounted
|
||||
loop: "{{ unmounted_dirs.stdout_lines }}"
|
||||
- name: Purge /var/lib/docker
|
||||
file:
|
||||
path: /var/lib/docker
|
||||
|
Loading…
Reference in New Issue
Block a user