You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !
The text was updated successfully, but these errors were encountered:
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:
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.
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 !
The text was updated successfully, but these errors were encountered: