1. Nextcloud cloud disk deployment (Docker environment)

Nextcloud cloud disk deployment (Docker environment)

NextCloud is an open source network hard drive system. Anyone can freely obtain the NextCloud program and build a private and free network hard drive in a family or company. It is a private, secure and fully functional file synchronization and sharing solution that is completely controlled by your users.

1. Install Docker-ce

#1.下载阿里镜像源
[root@docker1 ~]# curl -o  /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@docker1 ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#2.安装并配置docker-ce
yum -y install docker
[root@docker1 ~]# echo '
{
    
    
  "registry-mirrors": ["https://registry.docker-cn.com"],
  "insecure-registries": ["harbor.corp.trusit.com"],
  "live-restore": true
}' > /etc/docker/daemon.json        //如果没有/etc/docker/目录 则创建
[root@docker1 ~]# systemctl start docker && systemctl enable docker

2. Deploy Nextcloud cloud disk

#1.下载nextcloud:latest镜像
[root@docker1 ~]# docker pull nextcloud:latest
#2.启动nextcloud容器
[root@docker1 ~]# docker run -it -d -p 8880:80 -v nextcloud-data:/var/www/html --name nextcloud-server  harbor.corp.trusit.com/library/nextcloud:latest

3. Log in to http://ip:8880
Insert picture description here

The following interface appears and the deployment is successful

[External link image transfer failed. The source site may have an anti-hotlinking mechanism. It is recommended to save the image and upload it directly (img-dVFr6cos-1609467615924) (F:\Linux\Old Boy Document\image\1609467541653.png)]

Guess you like

Origin blog.csdn.net/weixin_43357497/article/details/112058620