V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ysicing
V2EX  ›  问与答

docker push 提示 denied: requested access to the resource is denied

  •  1
     
  •   ysicing · 2018-11-07 12:23:06 +08:00 · 1502 次点击
    这是一个创建于 2027 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家有遇到这种情况吗

    # 执行 build.sh ,脚本里会 docker build 和 docker push
    The push refers to a repository [docker.io/ysicing/api]
    abb3727e8243: Preparing
    7fd57049bfee: Preparing
    7b3b09357881: Preparing
    cdac3ff2d084: Preparing
    e544f3de5cc6: Preparing
    2b0fb280b60d: Waiting
    denied: requested access to the resource is denied
    # 手动 docker build 和 docker push
    docker build ysicing/api
    docker push ysicing/api
    

    脚本执行就会有问题,手动命令行执行就没问题

    hcymk2
        1
    hcymk2  
       2018-11-07 12:36:19 +08:00
    你是 push 到 docker.io
    ysicing
        2
    ysicing  
    OP
       2018-11-07 12:59:37 +08:00
    @hcymk2 是的啊
    hcymk2
        3
    hcymk2  
       2018-11-07 14:02:28 +08:00
    @ysicing
    难道要在脚本里面再登录一次?不应该啊。
    journalctl -u docker --since today
    先看下日志吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2324 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:36 · PVG 18:36 · LAX 03:36 · JFK 06:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.