Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docker: fix volume plugin does not remount volume on docker restart

logopk5039f9be4822
diff --git a/cmd/serve/docker/options.go b/cmd/serve/docker/options.go
index 902665979..dd94bb119 100644
--- a/cmd/serve/docker/options.go
+++ b/cmd/serve/docker/options.go
@@ -60,12 +60,14 @@ func (vol *Volume) applyOptions(volOpt VolOpts) error {
case "":
continue
case "remote", "fs":
- p, err := fspath.Parse(str)
- if err != nil || p.Name == ":" {
- return fmt.Errorf("cannot parse path %q: %w", str, err)
+ if str != "" {
+ p, err := fspath.Parse(str)
+ if err != nil || p.Name == ":" {
+ return fmt.Errorf("cannot parse path %q: %w", str, err)
+ }
+ fsName, fsPath, fsOpt = p.Name, p.Path, p.Config
+ vol.Fs = str
}
- fsName, fsPath, fsOpt = p.Name, p.Path, p.Config
- vol.Fs = str
case "type":
fsType = str
vol.Type = str