Merge pull request #45264 from corhere/fix-default-network-opts-config
daemon/config: fix default-network-opts in daemon.json
This commit is contained in:
commit
2fa8f54d08
2 changed files with 13 additions and 6 deletions
|
@ -76,12 +76,13 @@ var builtinRuntimes = map[string]bool{
|
|||
// Use this to differentiate these options
|
||||
// with others like the ones in TLSOptions.
|
||||
var flatOptions = map[string]bool{
|
||||
"cluster-store-opts": true,
|
||||
"log-opts": true,
|
||||
"runtimes": true,
|
||||
"default-ulimits": true,
|
||||
"features": true,
|
||||
"builder": true,
|
||||
"cluster-store-opts": true,
|
||||
"default-network-opts": true,
|
||||
"log-opts": true,
|
||||
"runtimes": true,
|
||||
"default-ulimits": true,
|
||||
"features": true,
|
||||
"builder": true,
|
||||
}
|
||||
|
||||
// skipValidateOptions contains configuration keys
|
||||
|
|
|
@ -25,6 +25,11 @@ func TestGetConflictFreeConfiguration(t *testing.T) {
|
|||
},
|
||||
"log-opts": {
|
||||
"tag": "test_tag"
|
||||
},
|
||||
"default-network-opts": {
|
||||
"overlay": {
|
||||
"com.docker.network.driver.mtu": "1337"
|
||||
}
|
||||
}
|
||||
}`)
|
||||
|
||||
|
@ -33,6 +38,7 @@ func TestGetConflictFreeConfiguration(t *testing.T) {
|
|||
flags.BoolVarP(&debug, "debug", "D", false, "")
|
||||
flags.Var(opts.NewNamedUlimitOpt("default-ulimits", nil), "default-ulimit", "")
|
||||
flags.Var(opts.NewNamedMapOpts("log-opts", nil, nil), "log-opt", "")
|
||||
flags.Var(opts.NewNamedMapMapOpts("default-network-opts", nil, nil), "default-network-opt", "")
|
||||
|
||||
cc, err := getConflictFreeConfiguration(configFile, flags)
|
||||
assert.NilError(t, err)
|
||||
|
|
Loading…
Add table
Reference in a new issue