(imageID string)
| 112 | } |
| 113 | |
| 114 | func (c Client) DeleteImage(imageID string) error { |
| 115 | if _, err := c.cli.ImageRemove(context.Background(), imageID, image.RemoveOptions{Force: true}); err != nil { |
| 116 | return err |
| 117 | } |
| 118 | return nil |
| 119 | } |
| 120 | func (c Client) ImageExists(imageID string) (bool, error) { |
| 121 | _, err := c.cli.ImageInspect(context.Background(), imageID) |
| 122 | if err != nil { |
no test coverage detected