1. 映像检查

基础容器映像 (BCI) 附带用于运行它的所有软件,但由于 BCI 为轻量级映像,它们可能不会附带您进行检查所需的所有工具和库。

在检查容器映像时,您可能会看到类似如下的错误消息:

libssl.so.1.1: cannot open shared object file: No such file or directory

BCI 适合用于除在容器构建主机上使用 Salt 捆绑包进行检查之外的其他场景,但如果您需要正常执行检查,则必须提前添加全部所需软件。

To avoid such issues you must add libopenssl to the image with Dockerfile and rebuild the image.

The same can happen with libexpat.