Hi, the filters you pass are passed over to docker-py (https://docker-py.readthedocs.io/en/stable/api.html#docker.api.image.ImageApiMixin.prune_images), which is passing it to the docker daemon via the API (https://docs.docker.com/engine/api/v1.39/#operation/ImagePrune).
The docker-py documentation only mentions the dangling filter, while the CLI docs (https://docs.docker.com/engine/reference/commandline/image_prune/) also mention the label filter you are using. The task you've posted looks like it *should* pass the correct values to the docker daemon. What exactly was the problem? Did you get an error message, or was an image simply not deleted? (And does docker CLI behave differently?) Cheers, Felix > How we can configure docker_prune to delete docker images with > specific name, I have tried something below and it didt worked can > you please help us to fix this > > > > > - name: Remove unused images > docker_prune: > images: yes > images_filters: > label: appName=hello > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20191216215415.1016bc89%40rovaniemi.
