浏览代码

Windows [TP4] Fix push to not kill daemon

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 9 年之前
父节点
当前提交
7e5e29e415
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 {