CyberpanelWeb Hosting

How To Install ownCloud On Cyberpanel With Docker


How To Install ownCloud On Cyberpanel With Docker? NextCloud is open source software for mainly handling file hosting services. In this article we will see how to install NextCloud on CyberPanel with Docker. We will create NextCloud Docker container and then use rewirte rules to proxy traffic to this container.

Step 1: Open Docker on CyberPanel

In the First Step open CyberPanel dashboard on your browser and look for Docker Manager, under Docker Manager you can click any link such as Manage Images, and it will redirect you to the installation page (only if Docker is not already installed).

Step 2: Download/Pull ownCloud Image

Once Docker installed, now you have to search for ownCloud image. For the ownCloud image click on the Manage Images link, where you can easily search and pull the image. As you can see the search option on the landing page, here you can type ownCloud for the image which is publicly available on Docker hub. Pull the Nextcloud image then the image will be listed as locally available.

And select tag:, you can see ownCloud image is locally available after being pulled.

Step 3: Create Docker Container for Nextcloud Image

After installing Docker and pulling Nextcloud image, you are now ready to create your Docker Container for Nextcloud. Docker containers are just running instances of Docker Images.

Now click on the link of New Container under Docker Manager. Once the image and tag are selected hit the create button.

After Clicking Create button you will see the page below:

ownCloud image use /var/www/html to store the application data, you can map this as volume to your Docker Host, so that data is persist between container reboots. We mapped this path to /home/

In your case, you can create a website from CyberPanel and use its document root as a path for volume mapping such as /home/

We choose 9000 to be expose as a port from this container. Make sure that the pot you choose is not use by any other process. Finally, click Create Container. If creation went successful you will be redirect to the container page where you can manage different aspects of the container. By default container is in a created state, you can click start to change its state to running.

Now that the container is running, you can use rewrite rules to proxy traffic to this container. Detailed instructions are available on the below article:


Make sure to use port 9000 in your proxy configurations, so that traffic is properly redirect to the container.

Once rewrite rules are configured, visit your domain and you should see the following page, you can then configure your ownCloud installation.


Leave a Reply

Your email address will not be published.

Back to top button