首先安装Docker :

Ubuntu:

sudo apt-get install docker.io

CentOS:

yum install docker.io
systemctl start docker

获取ownCloud官方Doker镜像

docker pull registry.docker-cn.com/library/owncloud

如果没有用root账户登录的话,很可能发生错误:

Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

启动Docker镜像

 

docker run -d -p 8080:80 registry.docker-cn.com/library/owncloudsudo docker run -d -p 8080:8080 owncloud:8.1

在浏览器里输入http://你的服务器ip:8080/

创建管理员用户名密码

设置用户名和密码,然后点击“安装完成“就可以使用ownCloud了,这样数据库使用的是SQLite。

 

视频版本教程:

https://youtu.be/66f6vdA9rD0

发表回复