Cloud Computing 5 min read

Deploying a Private Nextcloud Instance with Docker on Alibaba Cloud

This tutorial walks through installing Docker on an Alibaba Cloud server, pulling and running the Nextcloud container, configuring firewall ports, initializing the service, and verifying the private cloud storage works, providing step‑by‑step commands and screenshots for a complete deployment.

Java Architect Essentials
Java Architect Essentials
Java Architect Essentials
Deploying a Private Nextcloud Instance with Docker on Alibaba Cloud

The author explains how to set up a private cloud storage solution by installing Docker on an Alibaba Cloud VM and deploying the open‑source Nextcloud application inside a container.

Install Docker

If Docker is not already present, run the following commands on the server:

sudo yum -y install docker
sudo systemctl start docker
sudo systemctl enable docker

Open the required port

Before installing Nextcloud, ensure the firewall allows the port that will serve the web UI (e.g., 9001):

firewall-cmd --list-ports

Adjust the security group in the Alibaba Cloud console if necessary.

Run Nextcloud with Docker

Pull and start the Nextcloud container, mapping host port 9001 to container port 80:

[root@itzhouc ~]# docker run -d -p 9001:80 nextcloud

Verify the container is running:

[root@itzhouc ~]# docker ps
CONTAINER ID   IMAGE       COMMAND               CREATED          STATUS          PORTS                     NAMES
9f682796e6cf   nextcloud   "/entrypoint.sh apac…"   36 minutes ago   Up 35 minutes   0.0.0.0:9001->80/tcp   serene_bhabha

Access the service

Open a browser and navigate to http:// :9001 (replace 9001 with the port you chose). The Nextcloud setup wizard appears.

Initialization

Complete the wizard by providing admin credentials and basic configuration; Nextcloud will create the necessary database tables (about 72 tables) during this step.

Experience the cloud

After successful installation, you can upload files, download the desktop and mobile clients, and use Nextcloud’s web interface, which is presented in Chinese in this guide.

With Docker handling the runtime environment, the private Nextcloud instance is ready for personal or small‑team use.

DockerlinuxContainerAlibaba Cloudprivate cloudNextcloud
Java Architect Essentials
Written by

Java Architect Essentials

Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.