mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Reject scope settings in config-only network
Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
parent
86abd1ea41
commit
bf98dc6a40
1 changed files with 2 additions and 2 deletions
|
@ -356,10 +356,10 @@ func (n *network) validateConfiguration() error {
|
|||
if n.configOnly {
|
||||
// Only supports network specific configurations.
|
||||
// Network operator configurations are not supported.
|
||||
if n.ingress || n.internal || n.attachable {
|
||||
if n.ingress || n.internal || n.attachable || n.scope != "" {
|
||||
return types.ForbiddenErrorf("configuration network can only contain network " +
|
||||
"specific fields. Network operator fields like " +
|
||||
"[ ingress | internal | attachable ] are not supported.")
|
||||
"[ ingress | internal | attachable | scope ] are not supported.")
|
||||
}
|
||||
}
|
||||
if n.configFrom != "" {
|
||||
|
|
Loading…
Reference in a new issue