The docker source defines a struct to hold deleted images when running docker image prune
or docker system prune
:
type ImageDeleteResponseItem struct {
// The image ID of an image that was deleted
Deleted string `json:"Deleted,omitempty"`
// The image ID of an image that was untagged
Untagged string `json:"Untagged,omitempty"`
}
Looking at the comments I don't get the difference between the two. Aren't all untagged images also deleted?