Столкнулся с похожей проблемой при подключении yandex disk через webdev через docker compose
Решил вот так
docker-compose.yaml
services:
webdav:
build: src/
container_name: webdav
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
command: sh -c "mount /mnt/webdev && tail -f /dev/null"
Dockerfile
FROM debian:12.7
RUN apt update && apt install mc -y
RUN apt install davfs2 -y
RUN mkdir /mnt/webdev
RUN echo "
https://webdav.yandex.ru yyyyyy@yandex.ru xxxxxxxxxxxxxxxxxx" >> /etc/davfs2/secrets
RUN echo "
https://webdav.yandex.ru /mnt/webdev davfs user,rw,auto 0 0" >> /etc/fstab
RUN apt install curl -y
RUN curl -I
https://webdav.yandex.com