# It is possible to run rclone inside the docker container and mount the folder to host?

**URL:** <https://forum.rclone.org/t/it-is-possible-to-run-rclone-inside-the-docker-container-and-mount-the-folder-to-host/31268>\
**Category:** Help and Support\
**Created:** [June 13, 2022, 6:38pm UTC](https://forum.rclone.org/t/it-is-possible-to-run-rclone-inside-the-docker-container-and-mount-the-folder-to-host/31268 "2022-06-13T18:38:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![keffin](https://forum.rclone.org/user_avatar/forum.rclone.org/keffin/32/10983_2.png) [@keffin](https://forum.rclone.org/u/keffin)\
**Post date:** [June 14, 2022, 12:54am UTC](https://forum.rclone.org/t/it-is-possible-to-run-rclone-inside-the-docker-container-and-mount-the-folder-to-host/31268/3 "2022-06-14T00:54:33Z")

</div>

Took me a day, this is the prize:

```auto
version: '3.3'
services:
    rclone0:
        image: rclone/rclone:latest
        volumes:
            - ./config:/config/rclone
            - ./data:/data:shared
            - /etc/passwd:/etc/passwd:ro
            - /etc/group:/etc/group:ro
            - /etc/fuse.conf:/etc/fuse.conf:ro
        devices:
            - /dev/fuse:/dev/fuse:rwm
        cap_add:
            - SYS_ADMIN
        security_opt:
            - apparmor:unconfined
        user: 1000:1000
        network_mode: npm_default
        container_name: rclone0
        command: 'serve webdav xxx: --addr :8080 --user xxx --pass xxx --vfs-cache-mode full --cache-dir=/data/cache/0'

    rclone1:
        image: rclone/rclone:latest
        volumes:
            - ./config:/config/rclone
            - ./data:/data:shared
            - /etc/passwd:/etc/passwd:ro
            - /etc/group:/etc/group:ro
            - /etc/fuse.conf:/etc/fuse.conf:ro
        devices:
            - /dev/fuse:/dev/fuse:rwm
        cap_add:
            - SYS_ADMIN
        security_opt:
            - apparmor:unconfined
        user: 1000:1000
        container_name: rclone1
        command: 'mount xxx: xxx --allow-other --vfs-cache-mode full --cache-dir=/data/cache1'

```

Now I want to know, is there a way to avoid the transport endpoint not connected problem?

---

_[View the full topic](https://forum.rclone.org/t/it-is-possible-to-run-rclone-inside-the-docker-container-and-mount-the-folder-to-host/31268)._
