if for some reason you cannot upgrade awscli, you can manipulate the lines a bit to make you work with sed.
eg:
$(aws ecr get-login --region eu-central-1 | sed -e 's/-e none//g')
this will clear the -e flag, which is not supported, and you must be logged in.
amazia Oct 02 '17 at 9:01 on 2017-10-02 09:01
source share