docker 搭建nextcloud
安装docker
官网安装文档提取
- 安装基础软件
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
-
添加源
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
第二步
echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-
安装
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
安装nextcloud
-
下载镜像
docker pull nextcloud
-
启动nextcloud
docker run -d -p 9090:80 nextcloud
-
网页访问
http://ip:9090