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.
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 dockerOpen the required port
Before installing Nextcloud, ensure the firewall allows the port that will serve the web UI (e.g., 9001):
firewall-cmd --list-portsAdjust 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 nextcloudVerify 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_bhabhaAccess 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.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.