1.安装docker以及下载cmdb镜像
[root@ansible ~]# yum install docker -y
[root@ansible ~]# systemctl start docker.service
[root@ansible ~]# systemctl enable docker.service
[root@ansible ~]# docker pull ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
Trying to pull repository ccr.ccs.tencentyun.com/bk.io/cmdb-standalone ...
latest: Pulling from ccr.ccs.tencentyun.com/bk.io/cmdb-standalone
18b8eb7e7f01: Pull complete
61cb1f08289f: Pull complete
e5d326c0fe00: Pull complete
fe0d36676b71: Pull complete
85de262ef721: Pull complete
Digest: sha256:b58ccf74cb29717ee3e0d36bdadd9e27f8c6df194d0d8c1d877b3ffb60f4d279
Status: Downloaded newer image for ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
2.启动docker
[root@ansible ~]# docker run -d -p 8081:8090 ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
d50f3af85b705a7ff0e9327d895fe116446d29cd8e57e1e2494839fc6dc41f44
[root@ansible ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d50f3af85b70 ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest "/bin/sh -c ./run.sh" 7 seconds ago Up 3 seconds 0.0.0.0:8081->8090/tcp practical_brattain
3.访问CMDB
版权声明:本文为博主原创文章,未经博主允许不得转载。
其他