瀏覽代碼

Merge pull request #25839 from cpuguy83/add_comments

Add requested comments about old buggy behavior
Tõnis Tiigi 9 年之前
父節點
當前提交
923053d1ed
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      volume/local/local.go

+ 2 - 0
volume/local/local.go

@@ -95,6 +95,8 @@ func New(scope string, rootUID, rootGID int) (*Root, error) {
 			if err := json.Unmarshal(b, &opts); err != nil {
 				return nil, err
 			}
+			// Make sure this isn't an empty optsConfig.
+			// This could be empty due to buggy behavior in older versions of Docker.
 			if !reflect.DeepEqual(opts, optsConfig{}) {
 				v.opts = &opts
 			}