From 504663a6eeef0e2d7b87d5c205be7c81a048bfc1 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Mon, 25 Mar 2013 15:29:00 -0700 Subject: [PATCH] Skip missing images instead of failing the push --- registry.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/registry.go b/registry.go index 8076e3184..7b879d57b 100644 --- a/registry.go +++ b/registry.go @@ -357,10 +357,11 @@ func (graph *Graph) LookupRemoteRepository(remote string, authConfig *auth.AuthC } func (graph *Graph) pushPrimitive(stdout io.Writer, remote, tag, imgId string, authConfig *auth.AuthConfig) error { - // CHeck if the local impage exists + // Check if the local impage exists img, err := graph.Get(imgId) if err != nil { - return err + fmt.Fprintf(stdout, "Image %s for tag %s not found, skipping.\n", imgId, tag) + return nil } // Push the image if err = graph.PushImage(stdout, img, authConfig); err != nil {