MCPcopy
hub / github.com/docker/compose / removeImage

Method removeImage

pkg/compose/down.go:253–259  ·  view source on GitHub ↗
(ctx context.Context, image string)

Source from the content-addressed store, hash-verified

251}
252
253func (s *composeService) removeImage(ctx context.Context, image string) error {
254 id := fmt.Sprintf("Image %s", image)
255 return s.removeResource(id, func() error {
256 _, err := s.apiClient().ImageRemove(ctx, image, client.ImageRemoveOptions{})
257 return err
258 })
259}
260
261func (s *composeService) removeVolume(ctx context.Context, id string) error {
262 resource := fmt.Sprintf("Volume %s", id)

Callers 1

ensureImagesDownMethod · 0.95

Calls 3

removeResourceMethod · 0.95
apiClientMethod · 0.95
ImageRemoveMethod · 0.45

Tested by

no test coverage detected