volume/local: Break early if addr
was specified
I made a mistake in the last commit - after resolving the IP from the passed `addr` for CIFS it would still resolve the `device` part. Apply only one name resolution Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
f19f233ca5
commit
df43311f3d
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ func (v *localVolume) mount() error {
|
|||
return errors.Wrap(err, "error resolving passed in network volume address")
|
||||
}
|
||||
mountOpts = strings.Replace(mountOpts, "addr="+addrValue, "addr="+ipAddr.String(), 1)
|
||||
break
|
||||
}
|
||||
|
||||
if v.opts.MountType != "cifs" {
|
||||
|
|
Loading…
Add table
Reference in a new issue