to login to aws ecr with docker version 17.07 you have to remove the -u none from the command generated by aws ecr get-login