Docker login add a file to ~/.docker/config.json:
{ "auths": { "https://index.docker.io/v1/": { "auth": "somekey", "email": "[email protected]" } } }