Logging in to the Docker registry#
Specify the following parameters in the ~/.docker/config.json
file to set up logging in to the Docker registry:
{
"credsStore": "<suffix-of-the-program>"
"auths": {
"https://index.docker.io/v2/": {
...
}
}
}
The credential store binary depends on the platform. Docker supports the following options:
osxkeychain
on macOSpass
andsecret-service
on Linux
For details, see Docker CLI (docker): docker login.