docker
问题一:x509: cannot validate certificate for 192.168.121.100 because it doesn't contain any IP SANs
vim /etc/docker/daemon.json # 添加内容 "insecure-registries": ["192.168.121.100"] # 重启服务 systemctl restart docker
问题二:容器域名解析不了
# 使用下面这个参数进行解析 --add-host test1.a:1.2.3.4
podman
问题一:error pinging docker registry 192.168.121.100: Get "http://192.168.121.100/v2": x509: cannot validate certificate for 192.168.121.100 because it doesn't contain any IP SANs
vim /etc/containers/registries.conf
问题二: 资源不足问题
在启动 gitlab 时,出现了资源不足问题,原因为 podman 默认的 pid 数为2048,可以通过 -pids-limit int Tune container pids limit (set -1 for unlimited) (default 2048) 进行控制。