- Overview
- Installation
- Install and Configure
- Test Docker Image
- Administration
- Connect to ownCloud server
ownCloud is an open-source software which allows you to sync, share and collaborate files and content with your team. This helps a team to seamlessly work on data from anywhere and on any device. Some of the major features of ownCloud are:
- Flexible and secure sharing of files and folders.
- Collaborate remotely in real time irrespective of the platform.
- Access, edit and share documents from mobile devices.
- Share files directly from the file manager using the Virtual file system to save storage and bandwidth.
- Prevent conflicts while editing by locking the files to ensure better productivity.
In this guide, we will learn how to install, configure, administer and connect to the ownCloud server.
In this section we will learn how to install ownCloud using a Docker Image running on a single Ubuntu 18.04 LTS machine. This helps you to install and set up the ownCloud server quickly and easily. If you prefer the manual installation process please refer to the detailed Admin Manual.
-
Check the version of Ubuntu running the following command:
$ lsb_release -aThe output will look like:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic -
Check if
dockeris installed by running the following command:$ dockerThe output will look like:
Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "/home/debargho/.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") -D, --debug Enable debug mode -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string Trust certs signed only by this CA (default "/home/debargho/.docker/ca.pem") --tlscert string Path to TLS certificate file (default "/home/debargho/.docker/cert.pem") --tlskey string Path to TLS key file (default "/home/debargho/.docker/key.pem") --tlsverify Use TLS and verify the remote -v, --version Print version information and quit
If docker is not installed you have to install docker by executing the following steps:
-
Create a project folder and navigate to the folder by executing the following commands:
$ mkdir docker_install $ cd docker_install -
Next, download the
docker-compose.ymlfile from the ownCloud GitHub repository by running the following command:$ wget https://raw.githubusercontent.com/owncloud/docs/master/modules/admin_manual/examples/installation/docker/docker-compose.yml --2021-04-19 06:50:56-- https://raw.githubusercontent.com/owncloud/docs/master/modules/admin_manual/examples/installation/docker/docker-compose.yml Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1676 (1.6K) [text/plain] Saving to: ‘docker-compose.yml’ docker-compose.yml 100%[=================================================>] 1.64K --.-KB/s in 0s 2021-04-19 06:50:57 (16.7 MB/s) - ‘docker-compose.yml’ saved [1676/1676] -
Create a
.envfile by executing the following command:$ nano .envCopy the following environment configuration:
OWNCLOUD_VERSION=latest OWNCLOUD_DOMAIN=localhost ADMIN_USERNAME=admin ADMIN_PASSWORD=admin
Save the configuration.
- If you do not have
docker-composeinstalled, install it by running the following command:
$ sudo apt install docker-compose
After installing use the docker-compose CLI tool to build and start the container by running the following command:
$ docker-compose up -d
Now verify the status of the processes to determine the server is up and running. Execute the following command:
$ docker-compose ps
The output will look like:
Name Command State Ports
-------------------------------------------------------------------------------------------------
owncloudserverdocker_db_1 /usr/bin/entrypoint /bin/s ... Up 3306/tcp
owncloudserverdocker_owncloud_1 /usr/bin/entrypoint /usr/b ... Up 0.0.0.0:8080->8080/tcp
owncloudserverdocker_redis_1 /usr/bin/entrypoint /bin/s ... Up 6379/tcp
Now that the installation is done, you can test the docker image to verify and open ownCloud on the web.
To quickly test the docker image follow the steps below:
-
Download the official docker image for ownCloud server latest version by running the following command:
$ docker pull owncloud/server:latest -
Once the image is downloaded run the image on port 8080 by executing the following command:
$ docker run -p8080:8080 owncloud/server:latest
Once the apache demon starts enter http://localhost:8080 on your preferred browser. The following screen will appear:
In this section, we will learn about administration workflows like:
- Allow access to the server using IP address and port number
- Add a user account
Once the ownCloud server is up and running with default environment values, you can access it using your browser by executing the following steps:
- Enter http://localhost:8080 on your preferred browser. The login page appears, enter the username and password as configured in the
.envfile. The default is admin/admin. Refer to the image below:

- The Home screen appears as shown below:

- Skip the message for installing desktop and mobile clients. The files page is displayed as shown below:

Create a user account by executing the following steps:
- Login to the ownCloud server using admin credentials. Click the Admin drop-down at the top-right corner of the screen and select Users. Refer to the image below:

- The screen with the list of users appears as shown below:

- Enter the Username and E-mail in the respective text boxes and click Create as shown below:

- Once the user is created it will appear in the list as shown below:
After the user is created the user will receive an email with the username and a system generated password. - You can assign the user to a group from the Groups drop-down as shown below:

As an end user, you can access the ownCloud server from any modern web browsers and compatible device. In order to connect and use ownCloud efficiently, it is recommended to download and install the desktop and/or the mobile applications (clients). In this section we will learn the easiest way to connect to the ownCloud server from different clients.
To access ownCloud server from the web by executing the following steps:
- Open a tab from any browser.
- Enter the server URL, or the server's IP address and port number.
- Enter the login credentials.
- Start using the web interface. Refer to the image below:
You can now start using the web UI by uploading documents and sharing files.
To start using the ownCloud desktop client for Windows, Mac OS and Linux download the respective desktop client from here. For Linux users installation steps depend on the specific distribution. For more details click here.
In this guide we will see how to install the desktop client using the installation wizard by executing the following steps:
- After downloading run the wizard. Enter the URL the server of your ownCloud and click Next as shown below:

- Enter the login credentials, and click Next as shown below:

- Select the respective folders and files in your local machine to sync with server and click Connect as shown below:

For more details on installation, configuration, and usage of the desktop client, click here.
You can also start using ownCloud on your Android devices by executing the following steps:
- Download the Android application.
- Install the application similar to any other app. After successful installation, a New Features Wizard screen appears as shown below:

- Enter the server’s URL and the username and password to log in to the application.

- If a message appears about trusting the server's certificates, click Yes.

- Start using the app as shown below:

For more information, refer to ownCloud - Android.
You can also start using ownCloud on your iOS devices by executing the following steps:
- Download the iOS application.
- Install the application similar to any other app on your phone.
- Enter the server’s URL and the username and password to log in to the application.

- If a message appears about trusting the server's certificates, click Yes.

- Start using the app, starting at the Files screen as shown below:

For more information, refer to ownCloud - iOS.
