In order to remove unused image, use the command
docker image prune [OPTIONS]
In particular, the parameter
--all , -a Remove all unused images, not just dangling ones
How can I pass this parameter (--all) via Universal Control Plane API? There aren't support such parameter
That is because you're looking at the volume
API.
When you look at the image
API, you'll see that there is a dangling
parameter which is the equivalent of the --all
on the command line.