Fixes docker/docker#19404
incorrect error message if custom IP if the custom IP-address is not within a subnet of the network. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
69acfe6332
commit
3d9c5a959c
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ func (ep *endpoint) assignAddressVersion(ipVer int, ipam ipamapi.Ipam) error {
|
|||
}
|
||||
}
|
||||
if progAdd != nil {
|
||||
return types.BadRequestErrorf("Invalid preferred address %s: It does not belong to any of this network's subnets")
|
||||
return types.BadRequestErrorf("Invalid preferred address %s: It does not belong to any of this network's subnets", prefAdd)
|
||||
}
|
||||
return fmt.Errorf("no available IPv%d addresses on this network's address pools: %s (%s)", ipVer, n.Name(), n.ID())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue