2 导入镜像文件
(1)导入镜像文件
将GBase 8c 通用管理平台的安装包拷贝至待安装节点,并在存储路径下解压。
[root@gbase8c gbase]# tar -zxvf GBase8cV5_P2.0.0B12_x86_64.tar.gz
GBase8cV5_P2.0.0B12_x86_64/
GBase8cV5_P2.0.0B12_x86_64/data/
GBase8cV5_P2.0.0B12_x86_64/data/prometheus/
GBase8cV5_P2.0.0B12_x86_64/data/alertmanager/
GBase8cV5_P2.0.0B12_x86_64/data/alertmanager/silences
GBase8cV5_P2.0.0B12_x86_64/data/alertmanager/nflog
GBase8cV5_P2.0.0B12_x86_64/data/grafana/
GBase8cV5_P2.0.0B12_x86_64/data/grafana/log/
GBase8cV5_P2.0.0B12_x86_64/data/grafana/grafana.db
GBase8cV5_P2.0.0B12_x86_64/data/grafana/png/
GBase8cV5_P2.0.0B12_x86_64/data/grafana/plugins/
GBase8cV5_P2.0.0B12_x86_64/data/logstash/
…………………………
GBase8cV5_P2.0.0B12_x86_64/conf/alertmanager.yml
GBase8cV5_P2.0.0B12_x86_64/conf/prometheus.yml
GBase8cV5_P2.0.0B12_x86_64/conf/grafana/
GBase8cV5_P2.0.0B12_x86_64/conf/grafana/defaults.ini
GBase8cV5_P2.0.0B12_x86_64/docker-compose.yml
GBase8cV5_P2.0.0B12_x86_64/dcp-images.tar
使用Docker相关命令导入镜像文件dcp-images.tar。
[root@gbase8c ~]# docker load -i <文件所在绝对路径>/dcp-images.tar
861dddb4c520: Loading layer [==================================================>] 321.5 MB/321.5 MB
cb40a52b6db6: Loading layer [==================================================>] 3.072 kB/3.072 kB
94a4e6889694: Loading layer [==================================================>] 42.85 MB/42.85 MB
62ae6550daa3: Loading layer [==================================================>] 389.2 MB/389.2 MB
2307797af402: Loading layer [==================================================>] 171 MB/171 MB
721904c86d5c: Loading layer [==================================================>] 2.56 kB/2.56 kB
Loaded image: 10.9.9.50:9527/gbase8c-dcp/dcp-monitor:1.0
4224f4085d97: Loading layer [==================================================>] 253.9 MB/253.9 MB
39ab0172cf08: Loading layer [==================================================>] 70.64 MB/70.64 MB
Loaded image: 10.9.9.50:9527/gbase8c-dcp/dcp-autodeploy:latest
46cc5b95dcf7: Loading layer [==================================================>] 62.8 MB/62.8 MB
Loaded image: 10.9.9.50:9527/gbase8c-dcp/dcp-rest:latest
9abf31ae56d1: Loading layer [==================================================>] 45.78 MB/45.78 MB
e8216d9b7b99: Loading layer [==================================================>] 72.39 MB/72.39 MB
b16ab46672e8: Loading layer [==================================================>] 72.42 MB/72.42 MB
Loaded image: 10.9.9.50:9527/gbase8c-dcp/ctl-server:1.3
77a51b384d57: Loading layer [==================================================>] 897 kB/897 kB
201c1bc75173: Loading layer [==================================================>] 9.442 MB/9.442 MB
1801be4ffa9e: Loading layer [==================================================>] 30.72 kB/30.72 kB
Loaded image: 10.9.9.50:9527/gbase8c-dcp/dcp-web:latest
f2ddc867f728: Loading layer [==================================================>] 315.4 MB/315.4 MB
61c7f67f95a2: Loading layer [==================================================>] 2.048 kB/2.048 kB
b986d76f35c0: Loading layer [==================================================>] 3.584 kB/3.584 kB
Loaded image: 10.9.9.50:9527/basic/ky10_x86_logstash:1.0
31f2c5246c48: Loading layer [==================================================>] 39.56 MB/39.56 MB
57cc4012b119: Loading layer [==================================================>] 32.77 kB/32.77 kB
8e4451ac237d: Loading layer [==================================================>] 77.82 kB/77.82 kB
e82a8a168da2: Loading layer [==================================================>] 39.73 MB/39.73 MB
02576fd71fff: Loading layer [==================================================>] 54.69 MB/54.69 MB
5f70bf18a086: Loading layer [==================================================>] 1.024 kB/1.024 kB
Loaded image: 10.9.9.50:9527/basic/kylinx86_postgresql_13.4:1.0
注意:如果使用docker命令报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ,则docker.service服务没有处于运行状态。使用systemctl命令,将该服务重启(restart)或启动(start)。具体操作为:
[root@gbase8c ~]# systemctl restart docker.service
--或为
[root@gbase8c ~]# systemctl start docker.service
在启动docker服务后,重新调用docker load –i命令即可。
(2)检查镜像文件
导入镜像文件后,在该节点下检查镜像文件是否存在,即确认导入操作是否成功。具体操作为:
[root@gbase8c ~]# docker images
如返回以下结果,显示存储库包名、版本、版本ID、创建时间和文件大小信息,即镜像文件导入操作成功。
REPOSITORY TAG IMAGE ID CREATED SIZE
10.9.9.50:9527/gbase8c-dcp/dcp-web latest 1500393d1bd3 2 weeks ago 317 MB
10.9.9.50:9527/gbase8c-dcp/dcp-autodeploy latest 7dd686adccee 2 weeks ago 631 MB
10.9.9.50:9527/gbase8c-dcp/dcp-rest latest f831b6a37947 2 weeks ago 623 MB
10.9.9.50:9527/gbase8c-dcp/dcp-monitor 1.0 e36a0ef4f927 2 weeks ago 907 MB
10.9.9.50:9527/gbase8c-dcp/ctl-server 1.3 0e64b4be203e 2 weeks ago 497 MB
10.9.9.50:9527/basic/ky10_x86_logstash 1.0 0a8103df38e4 4 weeks ago 864 MB
10.9.9.50:9527/basic/kylinx86_postgresql_13.4 1.0 fe3ea43f8880 5 weeks ago 436 MB