Docker automation by build servers.
It is crucial to be independent between the jobs / builds.
The default location for the docker configuration is $HOME/.docker/config.json
When all jobs are executed with the same user, this will possibly effect other jobs.
Logging into a Docker Image Registry will modify that configuration file.
Define the docker configuration location to be inside the workspace.
Environment example:
export DOCKER_CONFIG="${pwd()}/.docker"
Jenkins pipeline example:
pipeline {
environment {
DOCKER_CONFIG="${pwd()}/.docker"
}
...
}