Pipeline - Docker Credentials "WARNING! Your password will be stored unencrypted"
I'm surprised that nobody else mentioned this. I've googled it several times and searched through this forum but most of the results were just related to failed login attempts, and none concerning this specific issue.
I'm getting this warning when executing the docker.withRegistry(<registryUrl>, <credentialsId>) step inside a multibranch pipeline build:
14:54:25$ docker login -u S_sbs-docker-rw -p ******** https://sbs.t-systems.com:1000414:54:25WARNING! Using --password via the CLI is insecure. Use --password-stdin.14:54:25WARNING! Your password will be stored unencrypted in /home/jenkins/workspace/S-sbs-pipeline-test_develop-W2CJZYB4W6CKRR35PWVB2ZNFR6QHFKUSFAMWEOU35RI7QRRTABLA@tmp/d15258c7-dec5-4caf-b398-cbff2d77a088/config.json.
14:54:25Configure a credential helper to remove this warning. See14:54:25https://docs.docker.com/engine/reference/commandline/login/#credentials-store14:54:2514:54:25Login Succeeded
Why are the credentials stored unencrypted? I know that this is standard docker behaviour, but I'd expect that the Docker Pipeline Plugin handled this so that they aren't: for instance, by piping the credentials into --password-stdin as suggested. (although I understand it may be elaborate due to having to determine the OS it's running on)
Or should I go with a docker-specific workaround mentioned in the link, like using a credentials store? Correct me if I'm wrong, but this seems dumb to me as we already use the Jenkins credentials store.