abraunegg-onedrive/README.docker.md

50 lines
1.3 KiB
Markdown
Raw Normal View History

# onedrive docker image
Thats right folks onedrive is now dockerized ;)
This container offers simple monitoring-mode service for 'Free Client for OneDrive on Linux'.
## Usage instructions
```bash
docker pull driveone/onedrive
```
2019-01-06 00:14:49 +01:00
**NOTE:** SELinux context needs to be configured or disabled for Docker, to be able to write to OneDrive host directory.
2019-01-06 00:14:49 +01:00
1. Run or update onedrive container
```bash
# Update onedriveDir with correct existing OneDrive directory path
onedriveDir="${HOME}/OneDrive"
firstRun='-d'
docker pull driveone/onedrive
docker inspect onedrive_conf > /dev/null || { docker volume create onedrive_conf; firstRun='-it'; }
docker inspect onedrive > /dev/null && docker rm -f onedrive
docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/onedrive/conf -v "${onedriveDir}:/onedrive/data" driveone/onedrive
```
## Poweruser section
2019-01-06 00:14:49 +01:00
1. Check if monitor service is running
```bash
docker ps -f name=onedrive
```
2019-01-06 00:14:49 +01:00
2. Show monitor run logs
```bash
docker logs onedrive
```
2019-01-06 00:14:49 +01:00
3. Stop running monitor
```bash
docker stop onedrive
```
2019-01-06 00:14:49 +01:00
4. Resume monitor
```bash
docker start onedrive
```
2019-01-06 00:14:49 +01:00
5. Unregister onedrive monitor
```bash
docker rm -f onedrive
```
## Build instructions
2019-01-24 18:18:48 +01:00
You can also build your own image instead of pulling the one from dockerhub:
2019-01-06 00:14:49 +01:00
```bash
2019-01-24 18:18:48 +01:00
docker build . -t onedrive
```