mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: touch-up godoc
Not perfect yet, but addressing some godoc "doc" links that needed to be updated, and touching up some references. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -73,7 +73,7 @@ func (cli *Client) ContainerCreate(ctx context.Context, config *container.Config
|
||||
hostConfig.CapDrop = normalizeCapabilities(hostConfig.CapDrop)
|
||||
}
|
||||
|
||||
// Since API 1.44, the container-wide MacAddress is deprecated and will trigger a WARNING if it's specified.
|
||||
// Since API 1.44, the container-wide MacAddress is deprecated and triggers a WARNING if it's specified.
|
||||
if versions.GreaterThanOrEqualTo(cli.ClientVersion(), "1.44") {
|
||||
config.MacAddress = "" //nolint:staticcheck // ignore SA1019: field is deprecated, but still used on API < v1.44.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user