1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Nicolas Singh Oteiza 2019-02-25 05:15:15 -03:00 committed by John R Barker
parent bcd6702b8a
commit e599f5aabe

View file

@ -105,6 +105,16 @@ EXAMPLES = '''
networks: yes networks: yes
volumes: yes volumes: yes
builder_cache: 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 = ''' RETURN = '''