{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12959","labels_url":"https://api.github.com/repos/docker/docker/issues/12959/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12959/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12959/events","html_url":"https://github.com/docker/docker/issues/12959","id":73015345,"number":12959,"title":"docker login exits with fatal \"inappropriate ioctl for device\" when run from cloud-init","user":{"login":"fvant","id":5323587,"avatar_url":"https://avatars.githubusercontent.com/u/5323587?v=3","gravatar_id":"","url":"https://api.github.com/users/fvant","html_url":"https://github.com/fvant","followers_url":"https://api.github.com/users/fvant/followers","following_url":"https://api.github.com/users/fvant/following{/other_user}","gists_url":"https://api.github.com/users/fvant/gists{/gist_id}","starred_url":"https://api.github.com/users/fvant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvant/subscriptions","organizations_url":"https://api.github.com/users/fvant/orgs","repos_url":"https://api.github.com/users/fvant/repos","events_url":"https://api.github.com/users/fvant/events{/privacy}","received_events_url":"https://api.github.com/users/fvant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-04T13:11:02Z","updated_at":"2015-05-04T13:11:02Z","closed_at":null,"body":"I am running a script to run a container from a cloud-init script (so as root).\r\n\r\ndocker ps works fine but docker login always exits with that fatal error.\r\nBTW i do have a .dockercfg file and provide only   -u 'myuser'  server   in the script.  (adding a -e and/or -p have same result)\r\n\r\nRunning the same script in a ssh shell works fine.  Could the code try to read from console, which is not there when script is run at boot??"}}