Skip to content

Instantly share code, notes, and snippets.

@straxico
Created April 23, 2019 14:02
Show Gist options
  • Save straxico/64c286fc8c8c8535d88af53d6a7b85d9 to your computer and use it in GitHub Desktop.
Save straxico/64c286fc8c8c8535d88af53d6a7b85d9 to your computer and use it in GitHub Desktop.
$ docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
Error: Cannot perform an interactive login from a non TTY device
ERROR: Job failed: exit code 1
.............................................................................................
$ docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment