فهرست منبع

Make sure sandbox GC is started after live-restore

Signed-off-by: Alessandro Boch <aboch@docker.com>
Alessandro Boch 9 سال پیش
والد
کامیت
8ee94f8349
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      libnetwork/osl/namespace_linux.go

+ 2 - 0
libnetwork/osl/namespace_linux.go

@@ -184,6 +184,8 @@ func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
 		if err != nil {
 		if err != nil {
 			return nil, err
 			return nil, err
 		}
 		}
+	} else {
+		once.Do(createBasePath)
 	}
 	}
 
 
 	n := &networkNamespace{path: key, isDefault: !osCreate}
 	n := &networkNamespace{path: key, isDefault: !osCreate}