3shape / docker-ci

Helps you build rock-solid Docker images. Written as a Powershell Core module. Install from PSGallery.
Apache License 2.0
5 stars 3 forks source link

Successful login spits `System.Management.Automation.RemoteException` #72

Open zionyx opened 4 years ago

zionyx commented 4 years ago
[2019-11-13T13:49:57.735Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json.
[2019-11-13T13:49:57.735Z] Configure a credential helper to remove this warning. See
[2019-11-13T13:49:57.735Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store
[2019-11-13T13:49:57.735Z] System.Management.Automation.RemoteException
[2019-11-13T13:49:57.735Z] Login Succeeded

Need to fix this exception even if login succeeds.

rasmusjelsgaard commented 4 years ago

Not sure I follow...is the credential helper not a configuration option of docker? docker login has no options besides username and password AFAIK.

If that is the case then I am not sure we can fix this.

rasmusjelsgaard commented 4 years ago

Not sure we can fix this - in my attempt to reproduce it I came to the conclusion that this is a message that gets output to stderr, probably thrown somewhere inside Powershell. I suggest we close this issue as a wont do.

rasmusjelsgaard commented 4 years ago

@zionyx note that in the latest version of this module stdout and stderr are split into separate streams. Maybe that allows you to suppress the message as you wanted. Could you look into this and then get back on this issue?