mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 20:02:45 +00:00
Add docker_prune sample to remove everything, including non-dangling images (#52744)
* Update docker_prune.py ##### SUMMARY Add example to remove everything, including non-dangling images ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr * fix indentation * Update lib/ansible/modules/cloud/docker/docker_prune.py Co-Authored-By: nicosingh <nicolas.singh@gmail.com>
This commit is contained in:
committed by
John R Barker
parent
bcd6702b8a
commit
e599f5aabe
@@ -105,6 +105,16 @@ EXAMPLES = '''
|
||||
networks: yes
|
||||
volumes: yes
|
||||
builder_cache: yes
|
||||
|
||||
- name: Prune everything (including non-dangling images)
|
||||
docker_prune:
|
||||
containers: yes
|
||||
images: yes
|
||||
images_filters:
|
||||
dangling: false
|
||||
networks: yes
|
||||
volumes: yes
|
||||
builder_cache: yes
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
||||
Reference in New Issue
Block a user