{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/14345","labels_url":"https://api.github.com/repos/docker/docker/issues/14345/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/14345/comments","events_url":"https://api.github.com/repos/docker/docker/issues/14345/events","html_url":"https://github.com/docker/docker/issues/14345","id":92566803,"number":14345,"title":"Login fails silently if {home}/.dockercfg can't be written","user":{"login":"jelmstrom","id":1045625,"avatar_url":"https://avatars.githubusercontent.com/u/1045625?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmstrom","html_url":"https://github.com/jelmstrom","followers_url":"https://api.github.com/users/jelmstrom/followers","following_url":"https://api.github.com/users/jelmstrom/following{/other_user}","gists_url":"https://api.github.com/users/jelmstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmstrom/subscriptions","organizations_url":"https://api.github.com/users/jelmstrom/orgs","repos_url":"https://api.github.com/users/jelmstrom/repos","events_url":"https://api.github.com/users/jelmstrom/events{/privacy}","received_events_url":"https://api.github.com/users/jelmstrom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//dist/registry","name":"/dist/registry","color":"5319e7"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T07:09:27Z","updated_at":"2015-07-09T19:41:29Z","closed_at":"2015-07-09T19:41:29Z","body":"I experienced a silent fail on centos 7 while authenticating with docker.io after installing thoughtworks GO because the permissions on the home folder were strange. It was caused by a problem with that install, but it caused unwanted behaviour in docker.\r\n\r\n```\r\n-bash-4.2$ docker login\r\nUsername: xxxx\r\nPassword:  \r\nEmail: johan.elmstrom@gmail.com\r\nWARNING: login credentials saved in /var/go/.dockercfg.\r\nLogin Succeeded\r\n\r\n-bash-4.2$ docker login\r\nUsername: \r\n```\r\n\r\nThe second call to login showed that the credentials were not stored so any subsequent call to push/pull would need to authenticate again..\r\n\r\nAn error message in case the file can't be written would be useful. In this scenario it was a side effect from other problems, but there might be other reasons why the file can't be written (locks etc...)\r\n\r\n\r\n```\r\n-bash-4.2$ docker version\r\nClient version: 1.6.2\r\nClient API version: 1.18\r\nGo version (client): go1.4.2\r\nGit commit (client): ba1f6c3/1.6.2\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.6.2\r\nServer API version: 1.18\r\nGo version (server): go1.4.2\r\nGit commit (server): ba1f6c3/1.6.2\r\nOS/Arch (server): linux/amd64\r\n\r\n\r\n-bash-4.2$ docker info\r\nContainers: 15\r\nImages: 154\r\nStorage Driver: devicemapper\r\n Pool Name: docker-202:1-318767622-pool\r\n Pool Blocksize: 65.54 kB\r\n Backing Filesystem: xfs\r\n Data file: \r\n Metadata file: \r\n Data Space Used: 7.443 GB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 99.93 GB\r\n Metadata Space Used: 10.15 MB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.137 GB\r\n Udev Sync Supported: true\r\n Library Version: 1.02.93-RHEL7 (2015-01-28)\r\nExecution Driver: native-0.2\r\nKernel Version: 3.10.0-123.8.1.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\nCPUs: 2\r\nTotal Memory: 7.39 GiB\r\nName: ip-172-31-24-127.us-west-2.compute.internal\r\nID: TAE6:NVZ2:JXR4:U5GP:4A26:F6PT:N2OC:OJEW:E4AY:ZJ2V:HDH2:TEKT\r\nUsername: tradedoublergo\r\nRegistry: [https://index.docker.io/v1/]\r\n\r\n\r\n-bash-4.2$ uname -a\r\nLinux ip-172-31-24-127.us-west-2.compute.internal 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n```"}}