Mount webdav in container and access it from the host

What is the problem you are having with rclone?

I have installed rclone docker using the following command:

docker pull rclone/rclone:latest
docker run -d \
  --restart=always \
  --name rclone \
  -h rclone \
  -e PUID=1001 \
  -e PGID=1001 \
  --net=network \
  -p 5572:5572 \
  --device /dev/fuse \
  --cap-add SYS_ADMIN \
  --security-opt apparmor:unconfined \
  -v rclone:/config/rclone \
  -v /mnt/downloads:/data \
  rclone/rclone:latest \
  mount webdav:/remote_dir /data --dir-cache-time 10s --vfs-cache-mode=full --allow-other --allow-non-empty

When I browse /data in the container, I can see the webdav files.

As you can see on the docker command, I have also mounted the host's /mnt/downloads to /data inside the container.

I was under the impression that this way I could mount "webdav:/remote_dir inside the container, and be able to access it from /mnt/downloads on the host.

Reading the documentation, I can see this is possible, but the the discussion in this thread, mentions that I must use sshfs. Which I assume I must install inside the container? I need guidance.

How can I mount a webdav url inside the rclone container, and access it from the docker host?

Run the command 'rclone version' and share the full output of the command.

/data # rclone version
rclone v1.68.1

  • os/version: alpine 3.20.3 (64 bit)
  • os/kernel: 6.1.0-26-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

webdav

welcome to the forum,

need to follow the example, by using :shared or :rshared

can search the forum for examples

this was very helpful. Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.