Sign inSign up

trurlmcbyte/docker-owncloud-client

By trurlmcbyte

•Updated over 8 years ago

Owncloud headless client

Artifact
Image
0

3.1K

trurlmcbyte/docker-owncloud-client repository overview

⁠docker-owncloud-client

Owncloud headless client so I can run multiple owncloud-clients on one machine to dfferent owncloud servers :)

Image should install the latest client (currently 2.1.0)

*Usage: 
docker run -d -v <hostdirtosync:dockerdirtosync> <environment vars> \ 
         idef1x/docker-owncloud-client 

*Example : 
docker run -d \
   -v ~/mydocs:/mydocs 
   -e LOCALDIR="/mydocs" \ 
   -e USER="example" \
   -e PASSWORD="examplepassword" \
   -e URL="https://<owncloudserver_name>/owncloud/remote.php/webdav/mydocs" \  
   -e INTERVAL="30" \
   -e HOSTUSER="myuserid" \ 
   --name <container name> \
   idef1x/docker-owncloud-client

⁠Environment vars to use:

  • USER => owncloud user
  • PASSWORD => owncloud user password
  • LOCALDIR => local (to docker client) directory to sync (create one with -v : )
  • URL => owncloud server URL with remote directory to sync
  • INTERVAL => interval to check for changes
  • HOSTUSER => user on host system so files get written by this user instead of root!

⁠Remarks

  • if one of those environment variables are not available it won't work!
  • naming the container (--name) is just for conveniance
  • client will trust any https certificate, so you can use it with self-signed certificates as well so check the certificate of the server URL before yourself!
  • logging is done to a file inside the container because it did show credentials via the docker logs. Inside the container in the log these are still shown, but can only be hidden by logging to /dev/null instead as far as I know :(

Tag summary

Content type

Image

Digest

Size

34.6 MB

Last updated

about 9 years ago

docker pull trurlmcbyte/docker-owncloud-client