自学内容网 自学内容网

zabbix7.0容器化部署测试--(1)准备容器镜像

本文为zabbix7.0容器化部署测试系统文档之一,准备容器镜像。拟测试数据库后台为PostgreSQL16并启用timescaledb插件。

一、准备数据库容器镜像

因为不确定zabbix7.0对数据库timescaledb插件的版本要求,准备了现个镜像版本

1、准备timescaledb-2.14.2插件容器
  • 下载页面

  • 下载指令 

docker pull timescale/timescaledb:2.14.2-pg16

  • 下载实作 
[root@localhost ~]# docker pull timescale/timescaledb:2.14.2-pg16
2.14.2-pg16: Pulling from timescale/timescaledb
619be1103602: Pull complete 
923f583d82c3: Pull complete 
a7a118cf7609: Pull complete 
0bc16082a9e9: Pull complete 
5c2213790a8f: Pull complete 
3ef59a207a9d: Pull complete 
a8dfeba1f2ba: Pull complete 
7b2714b613ef: Pull complete 
66ec292f927c: Pull complete 
a98b789ff813: Pull complete 
7f8b36a6bff1: Pull complete 
162ddb61241c: Pull complete 
e8f2741e34f7: Pull complete 
4d57d204f033: Pull complete 
Digest: sha256:068df316fc9dc448a80f1f39d808a06c08a54f35a66eb1d36b92636db78c3a43
Status: Downloaded newer image for timescale/timescaledb:2.14.2-pg16
[root@localhost ~]# docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
timescale/timescaledb   2.14.2-pg16         228587c7ad98        4 months ago        368MB
[root@localhost ~]# docker save -o timescale-timescaledb-2.14.2-pg16.tar timescale/timescaledb:2.14.2-pg16
[root@localhost ~]# ll
总用量 1054472
-rw-------. 1 root root 371079168  9月 21 07:02 timescale-timescaledb-2.14.2-pg16.tar
2、准备timescaledb-2.16.1插件容器 
  • 下载页面

  • 下载指令

docker pull timescale/timescaledb:2.16.1-pg16

  • 下载实作
[root@localhost ~]# docker pull timescale/timescaledb:2.16.1-pg16
2.16.1-pg16: Pulling from timescale/timescaledb
c6a83fedfae6: Pull complete 
4f325da6b465: Pull complete 
3b9c004462cc: Pull complete 
b79435b3f24e: Pull complete 
826bb0ac1004: Pull complete 
877cab0f2b20: Pull complete 
8dc019278051: Pull complete 
8b290b70c03c: Pull complete 
5349cd158aa9: Pull complete 
d45300484531: Pull complete 
b40d58adb5bb: Pull complete 
5c2d3b885bc5: Pull complete 
4b50b1becb9d: Pull complete 
728575e33517: Pull complete 
d4dc6c3d8cc3: Pull complete 
4b9021a51211: Pull complete 
fd2a3109ce84: Pull complete 
ab0311bd9f26: Pull complete 
c76ca22b429a: Pull complete 
Digest: sha256:3adf01543c37b5b88d3c4998338e0f7f21cb3cdd02bbddea08b09bf60e2289b7
Status: Downloaded newer image for timescale/timescaledb:2.16.1-pg16
[root@localhost ~]# docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
timescale/timescaledb   2.16.1-pg16         2bbb52e38008        6 weeks ago         699MB
[root@localhost ~]# docker save -o timescale-timescaledb-2.16.1-pg16.tar timescale/timescaledb:2.16.1-pg16
[root@localhost ~]# ll timescale-timescaledb-2.16.1-pg16.tar 
-rw-------. 1 root root 708686336  9月 21 06:56 timescale-timescaledb-2.16.1-pg16.tar

 二、准备zabbix服务容器

1、准备服务器容器
  • 下载页面

  • 下载指令 

docker pull zabbix/zabbix-server-pgsql:7.0-centos-latest

  • 下载实作 
[root@localhost ~]# docker pull zabbix/zabbix-server-pgsql:7.0-centos-latest
7.0-centos-latest: Pulling from zabbix/zabbix-server-pgsql
32861171d128: Pull complete 
d022cff1de13: Pull complete 
267d3e08aa9c: Pull complete 
0b87eb24e586: Pull complete 
344cb3a2681d: Pull complete 
eb62fc90b0a8: Pull complete 
4f4fb700ef54: Pull complete 
74d2b1ec6c1d: Pull complete 
Digest: sha256:a8505cdcd22b1646132a0c5a8d56b7ab373797b17bd594da8885c6039ec080d0
Status: Downloaded newer image for zabbix/zabbix-server-pgsql:7.0-centos-latest
[root@localhost ~]# docker images
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
zabbix/zabbix-server-pgsql   7.0-centos-latest   8db729e2c567        3 days ago          224MB
[root@localhost ~]# docker save -o zabbix-server-pgsql-7.0-centos-latest.tar zabbix/zabbix-server-pgsql:7.0-centos-latest
[root@localhost ~]# ll
总用量 1279392
-rw-------. 1 root root 230317056  9月 21 07:12 zabbix-server-pgsql-7.0-centos-latest.tar
 2、准备web容器
  • 下载页面

  • 下载指令 

docker pull zabbix/zabbix-web-apache-pgsql:7.0-centos-latest

  • 下载实作 
[root@localhost ~]# docker pull zabbix/zabbix-web-apache-pgsql:7.0-centos-latest
7.0-centos-latest: Pulling from zabbix/zabbix-web-apache-pgsql
32861171d128: Already exists 
535149ee74f4: Pull complete 
af58ba7f010a: Pull complete 
c285e60da146: Pull complete 
4f4fb700ef54: Pull complete 
35223fff1bd4: Pull complete 
Digest: sha256:513620e8cbee6e26331743bc38b6ebc5ebdf04c325af9187a6e068600183c5f6
Status: Downloaded newer image for zabbix/zabbix-web-apache-pgsql:7.0-centos-latest
[root@localhost ~]# docker images
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
zabbix/zabbix-web-apache-pgsql   7.0-centos-latest   454c65c50984        3 days ago          413MB
[root@localhost ~]# docker save -o zabbix-web-apache-pgsql-7.0-centos-latest.tar zabbix/zabbix-web-apache-pgsql:7.0-centos-latest
[root@localhost ~]# ll zabbix-web-apache-pgsql-7.0-centos-latest.tar 
-rw-------. 1 root root 424422912  9月 21 07:19 zabbix-web-apache-pgsql-7.0-centos-latest.tar
 3、准备代理容器
  • 下载页面

  • 下载指令 

docker pull zabbix/zabbix-proxy-mysql:7.0-centos-latest

  • 下载实作
[root@localhost ~]# docker pull zabbix/zabbix-proxy-mysql:7.0-centos-latest
7.0-centos-latest: Pulling from zabbix/zabbix-proxy-mysql
32861171d128: Already exists 
5a47530d61be: Pull complete 
5d25e2d8d6a5: Pull complete 
e3e163366a98: Pull complete 
ade936afc2ed: Pull complete 
5f244b8b17d4: Pull complete 
4f4fb700ef54: Pull complete 
f51d05421a12: Pull complete 
Digest: sha256:2c2fc40ad37830ca3fc81fadcabd80090b086438045387bd02ed2c7894e95646
Status: Downloaded newer image for zabbix/zabbix-proxy-mysql:7.0-centos-latest
[root@localhost ~]# docker images
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
zabbix/zabbix-proxy-mysql        7.0-centos-latest   fd34956e6b29        3 days ago          283MB
[root@localhost ~]# docker save -o zabbix-proxy-mysql-7.0-centos-latest.tar zabbix/zabbix-proxy-mysql:7.0-centos-latest
[root@localhost ~]# ll zabbix-proxy-mysql-7.0-centos-latest.tar 
-rw-------. 1 root root 289694720  9月 21 07:24 zabbix-proxy-mysql-7.0-centos-latest.tar

三、镜像文件汇总

[root@localhost ~]# docker images
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
zabbix/zabbix-web-apache-pgsql   7.0-centos-latest   454c65c50984        3 days ago          413MB
zabbix/zabbix-server-pgsql       7.0-centos-latest   8db729e2c567        3 days ago          224MB
zabbix/zabbix-proxy-mysql        7.0-centos-latest   fd34956e6b29        3 days ago          283MB
timescale/timescaledb            2.16.1-pg16         2bbb52e38008        6 weeks ago         699MB
timescale/timescaledb            2.14.2-pg16         228587c7ad98        4 months ago        368MB
[root@localhost ~]# ll
总用量 1976776
-rw-------. 1 root root 371079168  9月 21 07:02 timescale-timescaledb-2.14.2-pg16.tar
-rw-------. 1 root root 708686336  9月 21 06:56 timescale-timescaledb-2.16.1-pg16.tar
-rw-------. 1 root root 289694720  9月 21 07:24 zabbix-proxy-mysql-7.0-centos-latest.tar
-rw-------. 1 root root 230317056  9月 21 07:12 zabbix-server-pgsql-7.0-centos-latest.tar
-rw-------. 1 root root 424422912  9月 21 07:19 zabbix-web-apache-pgsql-7.0-centos-latest.tar


原文地址:https://blog.csdn.net/forestqq/article/details/142409223

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!