执行 Podman 映像的主要升级
支持的平台:
Google SecOps
SOAR
本文档介绍了如何使用 Podman 映像为现有远程代理执行主要升级。此过程假设您正在 Google Security Operations SOAR 平台中查看重大升级对话框。
-
在重大升级对话框中,复制提供的 Podman 运行命令:
PODMAN_COMMAND
-
列出当前正在运行的 Podman 容器:
podman ps
-
输入代理的容器 ID:
CONTAINER_ID
-
输入代理的容器名称:
。AGENT_NAME
-
使用以下命令将最新的 Podman 映像拉取到您的机器。
您可以将
:latest
标记替换为特定版本,例如1.4.8.3
。podman pull us-podman.pkg.dev/siem-ar-public/images/agent:latest
-
将原始环境变量 (
.bash_profile
) 复制到本地临时文件。podman exec CONTAINER_ID cat /home/siemplify_agent/.bash_profile > temp_bash_profile.txt
-
停止代理的 Podman 容器。
podman stop CONTAINER_ID
-
重命名容器以进行备份。
podman rename AGENT_NAME AGENT_NAME_backup
-
运行新的代理映像。如果您更改了
latest
标记,请确保图片标记与拉取的标记一致。PODMAN
-
列出正在运行的 Podman 容器。
podmabn ps
-
输入代理的新容器 ID:
NEW_CONTAINER_ID
-
将环境变量
.bash_profile
从临时文件复制到新容器。cat temp_bash_profile.txt | podman exec -i NEW_CONTAINER_ID sh -c 'cat > /home/siemplify_agent/.bash_profile'
-
重启代理服务以应用修改后的环境变量。
podman exec NEW_CONTAINER_ID supervisorctl restart all
需要更多帮助?从社区成员和 Google SecOps 专业人士那里获得解答。