docker 搭建nextcloud

安装docker

官网安装文档提取

  1. 安装基础软件
sudo apt-get update
 sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
  1. 添加源
    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

  2. 安装

 sudo apt-get update
 sudo apt-get install docker-ce docker-ce-cli containerd.io

安装nextcloud

  1. 下载镜像
    docker pull nextcloud

  2. 启动nextcloud
    docker run -d -p 9090:80 nextcloud

  3. 网页访问
    http://ip:9090

posted @ 2021-07-27 20:23    阅读(235)  评论(0编辑  收藏  举报