Open chamilad opened 7 years ago
I'll have a look.
@chamilad: I don't see an issue here. Can you please paste the output of docker images before and after the command as long as the output of the command?
@iocanel, Yes. I had it wrong. The corrected code is as follows.
client.image().withName(imageName).delete().force().andPrune(false);
However, shouldn't this be noPrune()
or andPrune(true)
for readability? When reading the code at a glance, it looks like I don't want to prune the parent layers, because prune(false)
.
I'll try to address that readablity issue in future releases.
I'm trying to delete an image using the following code, but what it actually seems to do is to only delete the layer tagged with the given image name. After the operation is completed, there is a new
<none>
entry whendocker images
is run.