Explorar o código

Windows [TP4] Fix push to not kill daemon

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard %!s(int64=9) %!d(string=hai) anos
pai
achega
7e5e29e415
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      graph/push_v2.go

+ 5 - 0
graph/push_v2.go

@@ -135,6 +135,11 @@ func (p *v2Pusher) pushV2Tag(tag string) error {
 			break
 		}
 
+		// Skip the base layer on Windows. This cannot be pushed.
+		if allowBaseParentImage && layer.Parent == "" {
+			break
+		}
+
 		logrus.Debugf("Pushing layer: %s", layer.ID)
 
 		if layer.Config != nil && metadata.Image != layer.ID {