bazingarick7
V2EX  ›  Apple

M1 docker 安装证书问题

  •  
  •   bazingarick7 · Jan 1, 2021 · 3025 views
    This topic created in 1986 days ago, the information mentioned may be changed or developed.

    M1 Mac 安装完 docker 之后出现这个错误有人知道怎么解决么?查了半天 google 解决不了 x509: certificate has expired or is not yet valid. 谢谢大家

    7 replies    2021-01-04 13:29:02 +08:00
    SingeeKing
        1
    SingeeKing  
    PRO
       Jan 1, 2021 via iPhone
    NTP 问题,docker 目前还不支持代理,把 0.pool.ntp.org 利用 DNS 改成国内的就可以
    bazingarick7
        2
    bazingarick7  
    OP
       Jan 1, 2021
    @SingeeKing thanks bro,确实是 NTP 问题 😁
    wujiezero
        3
    wujiezero  
       Jan 2, 2021 via iPhone
    使用这个配置,完美解决,记得回来感谢我😀

    {
    "experimental": true,
    "features": {
    "buildkit": true
    },
    "insecure-registries": [
    "registry-1.docker.io"
    ]
    }
    bazingarick7
        4
    bazingarick7  
    OP
       Jan 2, 2021
    @wujiezero NTP 同步时间后已经解决啦,不不过还是谢谢老哥
    xhlq
        5
    xhlq  
       Jan 3, 2021
    @bazingarick7 老哥,你是怎么改的啊,我刚接触 mac 和 docker,能不能详细说说,我现在 docker run hello-world 就出现这个 x509: certificate has expired or is not yet valid 问题了
    bazingarick7
        6
    bazingarick7  
    OP
       Jan 4, 2021
    @xhlq sudo sntp -sS 0.pool.ntp.org 或者你也可以试试 3 楼那个呀
    xhlq
        7
    xhlq  
       Jan 4, 2021
    @bazingarick7 好的,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2713 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:36 · PVG 23:36 · LAX 08:36 · JFK 11:36
    ♥ Do have faith in what you're doing.