Skip to content

Commit

Permalink
Remove bad validation of --link
Browse files Browse the repository at this point in the history
`parseNetworkAttachmentOpt` was disallowing `--link` to be used on the
default bridge network, although it's totally valid.

Signed-off-by: Albin Kerouanton <[email protected]>
  • Loading branch information
akerouanton committed Aug 10, 2023
1 parent 3952e6b commit 6c765b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cli/command/container/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,6 @@ func parseNetworkAttachmentOpt(ep opts.NetworkAttachmentOpts) (*networktypes.End
if len(ep.Aliases) > 0 {
return nil, errors.New("network-scoped aliases are only supported for user-defined networks")
}
if len(ep.Links) > 0 {
return nil, errors.New("links are only supported for user-defined networks")
}
}

epConfig := &networktypes.EndpointSettings{}
Expand Down

0 comments on commit 6c765b3

Please sign in to comment.