-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECR subcommand: Resulting output includes deprecated docker login parameter #1926
Comments
Thanks for letting us know. Looks like we should just be omitting the "-e none" argument in the login command? |
Excellent question! I'll test older docker versions to confirm, as an older |
EDIT: My information source was inaccurate ^ |
I just wanted to give an update here. I spoke with the ECR team and they've mentioned that some earlier versions of Docker prompt for an e-mail if the '-e' flag is not provided. Removing this field from the default get-login output is not backwards compatible. I think the concern is that if you're executing this command as part of some automated shell script, the script could now potentially hang. I'll keep this issue updated as I get more info. |
Any update here? Docker 1.13 should be out soon. UPDATE: it looks like now it won't be deprecated until 1.14? Even though the latest version of docker released a few days ago still tells me it will be deprecated in 1.13. |
We recently encountered a scenario where:
This scenario can be avoided by disabling the automatic security fixes, but I think you should consider that the default ECS setup, alongside your desire not to remove this deprecated The attempt to petition docker not to remove the flag that has been marked as deprecated since 1.11 here seems pretty backwards IMO. |
Docker 1.13 has landed and the warning message is |
I cant push anything to ECS registry on production with this message: Im using |
@debeers I've been using: eval $(aws ecr get-login --region eu-central-1 | sed -e 's/-e none//g') which works as a workaround |
…is should be solved in newer versions of aws-cli (aws/aws-cli#1926)
We've added an |
Have you thought about adding boolean option next to I see this new parameter addition as a temporary fix and as far as I'm concerned, having an option available in the tool's config file is more robust than having to remember to type parameter names correctly, at the command line. Thanks. |
--no-include-email should be default now, as current versions of docker fails with email parameter. |
Installing or upgrading AWSCLI doesn't prevent from throwing the error. We still got to use the command as below. $ aws ecr get-login --no-include-email |
Using awscli 1.11.138 on macOS and still have this issue. Docker version 17.06.1-ce-mac24 (18950) |
I still experience this issue: UPDATE: So the main problem was that --no-include-email option was not recognized hinting that aws-cli should be updated. The update would work only in pip3: #2676 (comment) |
I know that typing While I totally get and agree with the plea made by @sentientmonkey to the Docker people that they don't break the API and instead allow I'd just like to get a sense of the aws-cli team's plans on this, not trying to demand the change immediately. Additionally, I'd like to propose that
This way, every developer who hits this error (i.e. every single developer who started using, or has updated Docker after 2017) can see what the problem is, and fix the issue themselves, and it requires neither Googling nor memorization. |
Absolutely agree. This attitude of "let's leave it forever because backcompat" is part of how we get awful, crufty APIs over time. People are going to have to get used to the fact that a tool cannot stay stable forever. They're going to have to get used to the fact that they'll need to pin a specific version if they don't want behavior change. Giving absolutely no error output and forcing people to Google it and find issue threads on GitHub is in no way acceptable and it's honestly a bit surprising we have to have these discussions in this day and age. We shouldn't accept poor user experience for developer tools just because developers use them. We're basically saying, "oh, but they're a dev, they'll figure it out." Usability of command line tools is just as critical as usability of any GUI app. Please let us stop dropping our standards because "they can figure it out." |
Just came here to say that after three years, Cheers |
Don't bother, they have no interest in ever fixing it. You can have AWS enterprise support and they'll just refer you to these threads rather than pushing product teams to fix their broken stuff. |
…recated docker flags. see: aws/aws-cli#1926
…recated docker flags. see: aws/aws-cli#1926
I'm migrating from a server which has the old versions of docker and awscli to a server which has new ones. The deploy scripts are written in bash. This is how i'm testing for the version and adding the flag:
|
The output of
aws ecr get-login --region us-east-1
is:Docker reports
Warning: '-e' is deprecated, it will be removed soon. See usage.
when executing the above command produced by the awscli command.The occurs with Docker version 1.11.0, build 4dc5990.
The text was updated successfully, but these errors were encountered: