[#2] Trying a new way to log in Docker

2 jobs for preprod in 3 minutes and 18 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed maven-build #142676
build

00:03:03

 
  Package
failed docker-build #142677
build

00:00:14

 
Name Stage Failure
failed
docker-build Package
$ docker logout
Removing login credentials for https://index.docker.io/v1/
$ echo $CI_JOB_TOKEN
xxxxxxxxxxxxxxxxxxxx
$ echo $CI_REGISTRY

$ docker login -u $CI_JOB_USER -p $CI_JOB_TOKEN $CI_REGISTRY
Error: Cannot perform an interactive login from a non TTY device
ERROR: Job failed: exit status 1