Skip to content

DockerLogin with EnablePasswordStdin produce invalid command line  #5

@jrouaix

Description

@jrouaix

When using this command configuration :

 DockerLogin(s => s
                .SetServer(DockerRegistryServer)
                .SetUsername(DockerRegistryUserName)
                .SetPassword(DockerRegistryPassword)
                .EnablePasswordStdin()
            );

the command generated is :

docker login --password <MYPASS> --password-stdin --username <MYUSER> <MYREGISTRY>.azurecr.io

and the error messages are :

2018-11-07T10:19:51.2642236Z ##[error]WARNING! Using --password via the CLI is insecure. Use --password-stdin.
2018-11-07T10:19:51.2643599Z ##[error]--password and --password-stdin are mutually exclusive
2018-11-07T10:19:51.3433335Z ##[error]Process 'docker' exited with code 1. Verify the invocation.

the second one is the important here

A workaround will be not to use password stdin for now but i produce the password in our CI logs ... not so safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions