mdubourg001 / glci

🦊 Test your Gitlab CI Pipelines changes locally using Docker.
568 stars 17 forks source link

Can not log in to Docker registry #5

Open frwickst opened 3 years ago

frwickst commented 3 years ago

Running docker login -u <username> -p <password> will throw the following error:

Error: Cannot perform an interactive login from a non TTY device

I can use --password-stdin like: echo "bar" | docker login --username foo --password-stdin to get around this, but mainly pointing out that glci does not handle this the same way as GitLabs CI Runner would (at least not the Kubernetes ones).

mdubourg001 commented 3 years ago

Can you copy/paste the .gitlab-ci.yml declaration of the problematic job, or even the whole file is this is ok for you ? I just tried a login using using -u -p on the official docker:latest image and this seems to work.

Also, thanks for reporting this ! 👌