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
background Indexes are a double-edged sword. Whil...
My original intention was to encapsulate the $not...
Some of you may have heard that the order of trav...
First, we need to use the transform-origin attrib...
Preface Before we start explaining the principle ...
This article shares a native JS implementation of...
The advantages of this solution are simplicity an...
Introduction to influxDB influxDB is a distribute...
【SQL】SQL paging query summary The need for paging...
The conversion between time, string and timestamp...
Table of contents Normal paging query How to opti...
Table of contents Steps to create TCP in Linux Se...
1. The table tag is table, tr is row, td is cell, ...
Step 1: Install Stow In this example, we are usin...
Table of contents Start and stop Database related...