How to Fix Mounting Issues in Docker for OneDrive?

0
10
Asked By SlickPixel123 On

I've been working on a project where I'm trying to create a Docker container for OneDrive to back up my files on a separate network drive, all through the Linux terminal. Right now, when I run `findmnt` inside the OneDrive container, it shows the mapping as */onedrive/data* on the container side and [//192.168.4.6/Data](//192.168.4.6/Data) on the host side. However, in Portainer, it correctly displays it as */onedrive/data* for the container and */mnt/share/data* for the host. I can access the files in */mnt/share/data*, but something seems off with the mount inside the container. How can I correct this? It's really driving me crazy! Thanks in advance!

1 Answer

Answered By TechieTina On

Make sure your Docker run command is set up correctly too. The command you're using looks good, but verify your environment variables and volume settings. For example, this is what I typically run:

```bash
sudo docker run -it --name onedrive
-v onedrive_conf:/onedrive/conf
-v "/mnt/share/data:/onedrive/data"
-e "ONEDRIVE_UID=1000"
-e "ONEDRIVE_GID=1000"
driveone/onedrive:edge
```
This way, you ensure that the data path on both the host and container is correctly linked.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.