In some setups, it's possible the Docker client uses the available system key store to store the result of docker login. In that case, it's impossible to read ~/.docker/config.json, so you must prepare the required base64-encoded version of ${username}:${password} and create the Docker configuration JSON manually. Open a terminal and execute the following command: