重庆思庄Oracle、Redhat认证学习论坛

标题: redhat linux8 podman登录报x509: certificate has expired [打印本页]

作者: 郑全    时间: 2021-7-29 17:00
标题: redhat linux8 podman登录报x509: certificate has expired
本帖最后由 郑全 于 2021-7-29 17:03 编辑

如下:
[student@servera ~]$ podman login registry.lab.example.com
Username: admin
Password:
Error: error authenticating creds for "registry.lab.example.com": error pinging docker registry registry.lab.example.com: Get https://registry.lab.example.com/v2/: x509: certificate has expired or is not yet valid


作者: 郑全    时间: 2021-7-29 17:02
[student@servera ~]$ podman info |grep registries -A 10
registries:
  registry.lab.example.com:
    Blocked: false
    Insecure: false
    Location: registry.lab.example.com
    MirrorByDigestOnly: false
    Mirrors: null
    Prefix: registry.lab.example.com
  search:
  - registry.lab.example.com
作者: 郑全    时间: 2021-7-29 17:09
本帖最后由 郑全 于 2021-7-29 17:10 编辑
郑全 发表于 2021-7-29 17:02
[student@servera ~]$ podman info |grep registries -A 10
registries:
  registry.lab.example.com:

[student@servera ~]$ cat /etc/containers/registries.conf |grep -v -E '^$|^#'
[registries.search]
registries = ['registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
[registries.insecure]
registries = []
[registries.block]
registries = []


[student@servera ~]$ cat .config/containers/registries.conf
unqualified-search-registries = ['registry.lab.example.com']

[[registry]]
location = "registry.lab.example.com"
insecure = false
blocked = false







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2