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
There seems to be an issue with the usage of docker login when providing the --username and --password-stdin options. The --username option is being ignored or misinterpreted when placed after --password-stdin. Based on the official documentation, it should work in this order, but it leads to an error message when executed in this sequence.
Reproduce
Use the following command to log in to a Docker registry:
$ echo"$TARGET_GITLAB_PAT"| docker login -u "$TARGET_GITLAB_USERNAME" --password-stdin registry.gitlab.com
Must provide --username with --password-stdin
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
Expected behavior
Expected Behavior: The --username and --password-stdin options should work regardless of their order, as the documentation clearly specifies both options.
docker version
NA
docker info
NA
Additional Info
No response
The text was updated successfully, but these errors were encountered:
Description
There seems to be an issue with the usage of docker login when providing the --username and --password-stdin options. The --username option is being ignored or misinterpreted when placed after --password-stdin. Based on the official documentation, it should work in this order, but it leads to an error message when executed in this sequence.
Reproduce
Use the following command to log in to a Docker registry:
Expected behavior
Expected Behavior: The --username and --password-stdin options should work regardless of their order, as the documentation clearly specifies both options.
docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: