diff --git a/volume/local/local_unix.go b/volume/local/local_unix.go index 4f3d3b8f3f..d265d6e2f6 100644 --- a/volume/local/local_unix.go +++ b/volume/local/local_unix.go @@ -151,7 +151,11 @@ func getMountOptions(opts *optsConfig, resolveIP func(string, string) (*net.IPAd return "", "", errors.Wrap(err, "error resolving passed in network volume address") } deviceURL.Host = ipAddr.String() - mountDevice = deviceURL.String() + dev, err := url.QueryUnescape(deviceURL.String()) + if err != nil { + return "", "", fmt.Errorf("failed to unescape device URL: %q", deviceURL) + } + mountDevice = dev } }