Add requested comments about old buggy behavior
Address comment: 246d1eb58e (r75242138)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: c7075bd14949bae1ec938118ee96e4f1c9830b41
Component: engine
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user