docker login unknown shorthand flag: 'e'

后端 未结 5 1628
孤城傲影
孤城傲影 2020-12-08 03:24

I just updated my docker version and found out that command

aws ecr get-login

is not working anymore. Got error:

u

5条回答
  •  遥遥无期
    2020-12-08 03:59

    if for some reason you can't upgrade awscli version, you can do a little string manipulation to make it work for you with sed.

    for example:

    $(aws ecr get-login --region eu-central-1 | sed -e 's/-e none//g')
    

    this will drop the -e flag that is not supported and you should be able to login.

提交回复
热议问题