V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ysicing
V2EX  ›  问与答

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

  •  1
     
  •   ysicing · Nov 7, 2018 · 1891 views
    This topic created in 2736 days ago, the information mentioned may be changed or developed.

    大家有遇到这种情况吗

    # 执行 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  
       Nov 7, 2018
    你是 push 到 docker.io
    ysicing
        2
    ysicing  
    OP
       Nov 7, 2018
    @hcymk2 是的啊
    hcymk2
        3
    hcymk2  
       Nov 7, 2018
    @ysicing
    难道要在脚本里面再登录一次?不应该啊。
    journalctl -u docker --since today
    先看下日志吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:05 · PVG 22:05 · LAX 07:05 · JFK 10:05
    ♥ Do have faith in what you're doing.