mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #25839 from cpuguy83/add_comments
Add requested comments about old buggy behavior
This commit is contained in:
commit
923053d1ed
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue