- Launch the docker container
docker run -d \ --name onedrive \ -v YOUR_CONFIG_DIR:/root/.onedrived \ -v YOUR_DATA_DIR:/root/OneDrive/YOUR_DRIVE_ID \ yannickglt/docker-onedrive
Connect to One Drive to get your Drive ID.
The ID appears in the URL for the paramater cid (e.g.: https://onedrive.live.com/?id=root&cid=XXXXXXXXXXXXXXXX) and must be in lower case.
Configure your one drive account:
docker exec -it onedrive onedrived-pref
Press 0 and open the URL in your browser after connecting to your One Drive account. On the blank page, copy the URL and paste it in the terminal.
- Press 3 to configure a directory to synchronize.
- Restart the docker container.