Fork of l3iggs/docker-owncloud with a few fixes and customizations.
1.3K
Simple to use Docker container with the latest ownCloud server release, complete with all the bells and whistles.
Please report any issues or improvement ideas here:
https://github.com/l3iggs/docker-owncloud/issues
Pull requests welcome! Let's work together!
Say thanks by adding a comment or a star here:
https://registry.hub.docker.com/u/l3iggs/owncloud/
Check out the wiki for some stuff that I didn't include here because I thought the readme was getting too big. Feel free to add new content to the wiki as you see fit.
docker run --name oc -p 80:80 -p 443:443 -d l3iggs/owncloud
For option (A) (providing your own SSL cert files):
Assuming you have your own server.crt and server.key files in a directory ~/sslCert on the host machine run:
sudo chown -R root ~/sslCert
sudo chgrp -R root ~/sslCert
sudo chmod 400 ~/sslCert/server.key
Then insert the following into the docker startup command (from step 2. above) between run and --name:
-v ~/sslCert:/https
For option (B) (using the built-in script to re-generate your own self-sigend ssl certificate):
docker exec -it oc sh -c 'SUBJECT="/C=US/ST=CA/L=CITY/O=ORGANIZATION/OU=UNIT/CN=localhost" /etc/httpd/conf/genSSLKey.sh'
docker exec -it oc apachectl restart #<-- note that this will terminate ongoing connections
run and --name:-e REGENERATE_SSL_CERT=true -e SUBJECT=/C=US/ST=CA/L=CITY/O=ORGANIZATION/OU=UNIT/CN=localhost
The SUBJECT variable is actually optional here, but I put it in there to show how to change the generated certificate to your liking, especially important if you don't want your certificate to be for localhost
For either (A) or (B), remember to turn on the option to force https connections in the ownCloud admin settings page to take advantage of your hardened security.
docker stop oc
You can restart the container later with docker start oc
docker rm oc #<--WARNING: this will delete anything stored inside the container
NOTE: Docker 1.7 is scheduled for release on 06/16/2015. This will bring with it named containers which will greatly simplify & improve container data management. Stay tuned for a new upgrade strategy.
From time-to-time I'll update the continer to add new features or fix bugs or update to a new ownCloud server release, so you might want to update the ownCloud container you're using.
docker pull l3iggs/ownclouddocker stop oc <-- warning: this will immediately stop your serverdocker rm oc <-- WARNING: this may cause catastrophic data loss. It WILL delete anything stored inside the container. If you wish to retain important things like data files and configuration files after running this command, then see the wiki on Github for instructions on how to store these things outside of the container.Content type
Image
Digest
sha256:7e62bfb9f…
Size
815.7 MB
Last updated
almost 11 years ago
docker pull dbxt/docker-arch-owncloud