Sfoglia il codice sorgente

Merge pull request #17988 from Microsoft/jjh/pushv2

Windows [TP4] Fix push to not kill daemon
Tibor Vass 9 anni fa
parent
commit
ef424c108a
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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 {