Official Repository

Last pushed: 5 days ago
Short Description
ownCloud is a self-hosted file sync and share server.
Full Description

Supported tags and respective Dockerfile links

Quick reference

What is ownCloud?

ownCloud is a self-hosted file sync and share server. It provides access to your data through a web interface, sync clients or WebDAV while providing a platform to view, sync and share across devices easily—all under your control. ownCloud’s open architecture is extensible via a simple but powerful API for applications and plugins and it works with any storage.

How to use this image

Start ownCloud

Starting the ownCloud 8.1 instance listening on port 80 is as easy as the following:

$ docker run -d -p 80:80 owncloud:8.1

Then go to http://localhost/ and go through the wizard. By default this container uses SQLite for data storage, but the wizard should allow for connecting to an existing database. Additionally, tags for 6.0, 7.0, or 8.0 are available.

For a MySQL database you can link an database container, e.g. --link my-mysql:mysql, and then use mysql as the database host on setup.

Persistent data

All data beyond what lives in the database (file uploads, etc) is stored within the default volume /var/www/html. With this volume, ownCloud will only be updated when the file version.php is not present.

  • -v /<mydatalocation>:/var/www/html

For fine grained data persistence, you can use 3 volumes, as shown below.

  • -v /<mydatalocation>/apps:/var/www/html/apps installed / modified apps
  • -v /<mydatalocation>/config:/var/www/html/config local configuration
  • -v /<mydatalocation>/data:/var/www/html/data the actual data of your ownCloud


When using the 6.0 image, you need to map the host port to the container port that apache listens on when going through the installation wizard. By default, this is port 80.

Using occ

The occ tool from upstream is simplest to use via docker exec, similar to the example provided there:

$ docker exec -u www-data some-owncloud php occ status

... via docker-compose

Example docker-compose.yml for owncloud:

# ownCloud with MariaDB/MySQL
# Access via "http://localhost:8080" (or "http://$(docker-machine ip):8080" if using docker-machine)
# During initial ownCloud setup, select "Storage & database" --> "Configure the database" --> "MySQL/MariaDB"
# Database user: root
# Database password: example
# Database name: pick any name
# Database host: replace "localhost" with "mysql"

version: '2'


    image: owncloud
      - 8080:80

    image: mariadb
      MYSQL_ROOT_PASSWORD: example


View license information for the software contained in this image.

Docker Pull Command

Comments (40)
a day ago

It work fine , but for fpm version need to add to documentation that used port 9000 , normal is port 80 for apache , if you need to add ssl you can used letsencrypt using docker containers nginx-proxy and jrcs/letsencrypt-nginx-proxy-companion . (you be able to used this two container to provide ssl by letsencrypt to all your container with web interface ) .

2 months ago

For those asking for SSL checkout this image :

3 months ago

How can I use the smbclient in the container?
Is it possible without creating own dockerfile?

4 months ago

Is there a way to add a ssl certifikat to make https connections possible?
Because the owncloud server say me:
Accessing this site over HTTP. We strongly advise your server to configure to accept only HTTPS, as it is described in our security notice.
Is ther a way to make the server connecton more secure with https?

4 months ago

Hello, is it possible to enable SSL outside the container, when it run?

5 months ago

after installing owncloud and configuring MySQL, I'm getting the error : "Data directory (/var/www/html/data) is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users."
I executed the command "docker exec owncloud chmod -c 0770 /var/www/html/data". Although the command prints "success", when I execute "ls -l" on html directory, data folder rights remain unchanged and owncloud keeps displaying the same error as above.

5 months ago

@linuxmen, maybe you try
docker run -d -p 8080:80 -v /dados/owncloud:/var/www/html owncloud:latest

5 months ago

cannot access /<mydatalocation>/data with error "permission denied".
I get this access by sudo chmod 777 data

5 months ago

Could you please add the cron daemon to the image?

6 months ago

The documentation is not correct. Linking your own mountpoint should be via /var/www/owncloud/... and not /var/www/html/...
Otherwise you get errors like:
tar: ./apps/external/l10n/de_AT.js: Cannot open: No such file or directory
tar: ./apps/external: Cannot mkdir: Permission denied

tar: ./apps/external/l10n/de_AT.json: Cannot open: No such file or directory
tar: ./apps/external: Cannot mkdir: Permission denied