1. IntroductionNextcloud is a very easy-to-use network disk system with powerful functions and complete plug-ins. It is very suitable for setting up personal and corporate network disks. 2. Deployment EnvironmentServer system: CentOS7 Docker version: 20.10.10 ToolsTools used: Docker 20.10.10 4. Deployment Process1. Create a new Nextcloud folder on the host. The Nextcloud folder is used to map the storage path of the Nextcloud container. mkdir -p /home/docker/nextcloud 2. Build the mysql container. docker run -d --name mysql \ --restart=always \ -p 3306:3306 \ -e MYSQL_ROOT_PASSWORD=hzbb@123321 \ mysql Command details: 3. Enter the MySQL container to create the nextcloud database docker exec -it mysql /bin/bash mysql -uroot -phzbb@123321 create database nextcloud; 4. Build Nextcloud container docker run -d --name nextcloud \ --restart=always \ -p 80:80 \ -v /home/docker/nextcloud/:/var/www/html/ \ nextcloud Command details: –name nextcloud container name nextcloud 5. Complete the initial installation of Nextcloud by accessing the host IP through the web. The host IP tested here is 192.168.102.103. 【Construction completed~】 【Error handling】 When executing mysql -uroot -phzbb@123321, an error message appears: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) The mysql service has not been fully started. Wait for a while and then execute again SummarizeThis is the end of this article about using Docker to build nextcloud personal network disk tutorial. For more related Docker nextcloud network disk content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of the usage of image tags in HTML
The specific method of installing CentOS 7.0 on V...
Look at the code first Copy code The code is as fo...
Table of contents Preface Installation and Config...
Linux uses files as the basis to manage the devic...
This article example shares the specific code of ...
1.# # represents a location in a web page. The ch...
reduce method is an array iteration method. Unlik...
The PC version of React was refactored to use Ama...
1. Introduction to inode To understand inode, we ...
Preface When the WeChat mini program project invo...
LEMP (Linux + Nginx + MySQL + PHP) is basically a...
Table of contents Preface Ajax serial and paralle...
Preface What is a slow query and how to optimize ...
My first server program I'm currently learnin...
A few days ago, the library said that the server ...