Skip to content
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

Docker@2 respository name broke with uppercase #10415

Closed
YohskDista opened this issue May 20, 2019 · 2 comments
Closed

Docker@2 respository name broke with uppercase #10415

YohskDista opened this issue May 20, 2019 · 2 comments

Comments

@YohskDista
Copy link

Hello,

I was updating my Azure Pipeline with the new Docker@2 task and I get an issue with the repository name. I found a similar issue for the Docker@1 task and I think it is a regression. Here is the error message in the azure pipeline log :

***/ServerGateway:'0.1.0.0' -t /ServerGateway:'latest' d:\a\1\s\ServerGateway
invalid argument "
/ServerGateway:'0.1.0.0'" for "-t, --tag" flag: invalid reference format: repository name must be lowercase
See 'docker build --help'.
##[error]C:\Program Files\Docker\docker.exe failed with return code: 125
##[section]Finishing: Build and Push

Here is the link to the related issue #2988. Actually I put the repository name in a lower case variable, it works great but I would be able to use the $(Build.Repository.Name) variable like before.

Thank you for your help !

@ajinkya599
Copy link
Contributor

ajinkya599 commented May 29, 2019

Hey @YohskDista. Thanks for reporting this. We are fixing this in Docker@2 task.
In Docker@1, the Force image name to follow Docker naming convention checkbox (which is checked by default) under Advanced Options section, solves the problem:

image

@YohskDista
Copy link
Author

Hello @ajinkya599,
Yes I was using the version 1 before and it was working great. I was thinking to update to version 2 but due to this problem I came back to the previous version. I will wait until the problem is solved.

Thank you for your feedback ! Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants