Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #147 from heartlock/fix-rm-image
Browse files Browse the repository at this point in the history
set force when remove image
  • Loading branch information
feiskyer authored May 18, 2017
2 parents 1db297b + fea9301 commit 6ecbc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hyper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (c *Client) RemoveImage(image, tag string) error {
repoSep = "@"
}

_, err := c.client.ImageRemove(ctx, &types.ImageRemoveRequest{Image: fmt.Sprintf("%s%s%s", image, repoSep, tag)})
_, err := c.client.ImageRemove(ctx, &types.ImageRemoveRequest{Image: fmt.Sprintf("%s%s%s", image, repoSep, tag), Force: true})
return err
}

Expand Down

0 comments on commit 6ecbc61

Please sign in to comment.