mirror of
https://github.com/containers/podman.git
synced 2025-12-09 23:27:09 +08:00
Merge pull request #22673 from tnk4on/fix-farm-remote
Fix podman-remote support for `podman farm build`
This commit is contained in:
@@ -201,13 +201,13 @@ func (ir *ImageEngine) ManifestPush(ctx context.Context, name, destination strin
|
||||
|
||||
// ManifestListClear clears out all instances from a manifest list
|
||||
func (ir *ImageEngine) ManifestListClear(ctx context.Context, name string) (string, error) {
|
||||
listContents, err := manifests.InspectListData(ctx, name, &manifests.InspectOptions{})
|
||||
listContents, err := manifests.InspectListData(ir.ClientCtx, name, &manifests.InspectOptions{})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
for _, instance := range listContents.Manifests {
|
||||
if _, err := manifests.Remove(ctx, name, instance.Digest.String(), &manifests.RemoveOptions{}); err != nil {
|
||||
if _, err := manifests.Remove(ir.ClientCtx, name, instance.Digest.String(), &manifests.RemoveOptions{}); err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user