As per the Docker API, /images/prune should remove all unused images. However Docker::Images.prune never removes unused images. I can only ever get it to delete dangling images.
Using Docker Engine 17.09, I have tried:
Docker::Image.prune
Docker.connection.post('/images/prune', {all: true})
Docker.connection.post('/images/prune', {filters: {dangling: ['true']}.to_json})
Docker.connection.post('/images/prune', {filters: {dangling: ['false']}.to_json})
None of them will remove unused images. I pulled several images that were never used by any containers and they were not removed.
Either this is an issue with this gem or the Docker API itself. Can anyone else reproduce this issue?
As per the Docker API,
/images/pruneshould remove all unused images. HoweverDocker::Images.prunenever removes unused images. I can only ever get it to delete dangling images.Using Docker Engine 17.09, I have tried:
None of them will remove unused images. I pulled several images that were never used by any containers and they were not removed.
Either this is an issue with this gem or the Docker API itself. Can anyone else reproduce this issue?