SUSE Multi-Linux Manager 代理升级
运行升级命令前,需要更新主机操作系统。更新主机操作系统时,SUSE Multi-Linux Manager 相关工具(如 mgrpxy)也会同步更新。
使用
zypper刷新软件储存库:zypper ref根据主机操作系统执行以下步骤:
- 对于 SL Micro 等事务性系统:
使用
transactional-update应用可用的更新:transactional-update如果已应用更新,请
重引导。- 对于 SUSE Linux Enterprise Server:
使用
zypper更新安装的软件:zypper up可使用以下命令来更新
podman上运行的 SUSE Multi-Linux Manager 代理容器:mgrpxy upgrade podman或者,可使用以下命令更新 Kubernetes 群集上运行的容器:
mgrpxy upgrade kubernetes在 Podman 上,清理未使用的容器映像以释放磁盘空间:
podman image prune -aOn Kubernetes the image cleanup is handled automatically, or it depends on the Kubernetes distribution. ``
Check for
*.rpmnewand*.rpmsavefiles inside the container:mgrctl exec 'find /etc/ -name "*.rpmnew" -o -name "*.rpmsave"'
When an upgrade includes changes to a default configuration file that has been altered after package installation, instead of overwriting the file, one of these file types is created:
*.rpmnew: contains the new default configuration and leaves your altered file untouched
*.rpmsave: a copy of your altered configuration that has been replaced by the new default fileIf you find any
*.rpmnewor*.rpmsavefiles, examine their content and merge desirable changes.
|
如果升级到特定版本时未指定标记参数,则默认会升级到最新版本。要升级到特定版本,请为标记参数提供所需的映像标记。 |
|
虽然可以使用特定标记升级特定容器,但此功能仅用于应用 PTF。 在正常情况下,我们强烈建议为所有代理容器使用相同的标记,以确保配置一致性。 |
对于隔离的安装,请先升级容器 RPM 软件包,然后运行 mgrpxy upgrade podman 命令。