mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Merge pull request #25839 from cpuguy83/add_comments
Add requested comments about old buggy behavior Upstream-commit: 923053d1edac552a8d48cbb293c4ec935a93348b 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