Jenkins Amazon ECR: no basic auth credentials

后端 未结 2 1963
花落未央
花落未央 2021-01-17 23:55

I\'m not able to push ocker images to Amazon ECR with Jenkins Pipeline: I always get no basic auth credentials :-(

Here is my setup:

  • Jenki
2条回答
  •  清酒与你
    2021-01-18 00:06

    just remove or rename $HOME/.docker/config.json file from your local pc or cloud server. It will solve the no basic auth credentials issue.

    Follow the below step in your terminal:

    mv $HOME/.docker/config.json $HOME/.docker/config.json.backup
    

提交回复
热议问题