拉取镜像
[root@kvm ~]
[root@kvm ~]
启动mysql容器
[root@kvm ~]
db832e4e4333a0e9a7c152a67272721fdbe5381054090c5eb24f90455390a852
[root@kvm ~]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
db832e4e4333 mysql:5.6 "docker-entrypoint.s…" 3 seconds ago Up 2 seconds 3306/tcp db1
owncloud容器链接mysql
[root@kvm ~]
2e77278c1070abb5591eb90b54d2dcb892063936f6deacbb1fe057eb712807b9
[root@kvm ~]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
eaa847239886 owncloud:latest "docker-entrypoint.s…" 4 seconds ago Up 3 seconds 80/tcp mycloud
db832e4e4333 mysql:5.6 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 3306/tcp db1
安装个人网盘
过滤owncloud容器IP
[root@kvm ~]
"SecondaryIPAddresses": null,
"IPAddress": "172.17.0.3",
"IPAddress": "172.17.0.3",
浏览器访问
![image-20230820173646263](https://i-blog.csdnimg.cn/blog_migrate/9ac963135d703316bc770654973b38fd.png)
过滤mysql容器IP
[root@kvm ~]
"SecondaryIPAddresses": null,
"IPAddress": "172.17.0.2",
"IPAddress": "172.17.0.2",
配置安装环境
![image-20230820174227727](https://i-blog.csdnimg.cn/blog_migrate/c30906cb251c9ada24966b9ffc7a7776.png)
登录
![image-20230820174339413](https://i-blog.csdnimg.cn/blog_migrate/5d113dc7946ddc0451d900d5c2417d2d.png)