{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/hub-feedback/issues/473","labels_url":"https://api.github.com/repos/docker/hub-feedback/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/docker/hub-feedback/issues/473/comments","events_url":"https://api.github.com/repos/docker/hub-feedback/issues/473/events","html_url":"https://github.com/docker/hub-feedback/issues/473","id":117621763,"number":473,"title":"DockerToolbox in windows Login/push doesnt works properly","user":{"login":"ppadial","id":3371798,"avatar_url":"https://avatars.githubusercontent.com/u/3371798?v=3","gravatar_id":"","url":"https://api.github.com/users/ppadial","html_url":"https://github.com/ppadial","followers_url":"https://api.github.com/users/ppadial/followers","following_url":"https://api.github.com/users/ppadial/following{/other_user}","gists_url":"https://api.github.com/users/ppadial/gists{/gist_id}","starred_url":"https://api.github.com/users/ppadial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppadial/subscriptions","organizations_url":"https://api.github.com/users/ppadial/orgs","repos_url":"https://api.github.com/users/ppadial/repos","events_url":"https://api.github.com/users/ppadial/events{/privacy}","received_events_url":"https://api.github.com/users/ppadial/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T16:16:10Z","updated_at":"2015-11-18T16:16:10Z","closed_at":null,"body":"Hi all,\r\n\r\nMy Use case is the following:\r\n I have a DockerHub account and I want to push an image to my repository.\r\n\r\nSo, the order to do this (having the image ready locally with the same name that my user/repo):\r\n  1. Login using docker login\r\n  2. Docker push\r\n\r\nThe First Error is when I tried to login automatically:\r\n```\r\n$ docker login --username=myuser --password=mypasswd --email=myemail\r\nError response from daemon: Unexpected status code [403] : <html><body><h1>403 Forbidden</h1>\r\nRequest forbidden by administrative rules.\r\n</body></html>\r\n```\r\nLooking with a network monitor is trying to connect to https://registry-win-tp3.docker.io/v2/ and its getting this error.\r\n\r\nIf I specify the default index registry of docker io, the login is OK and creates the ~/.docker/config.json file propery with the following content\r\n```\r\ndocker login --username=myuser --password=mypassword --email=myemail https://index.docker.io/v1/\r\nWARNING: login credentials saved in C:\\Users\\myuser\\.docker\\config.json\r\nLogin Succeeded\r\n```\r\nThe file content is the following:\r\n```\r\n{\r\n\t\"auths\": {\r\n\t\t\"https://index.docker.io/v1/\": {\r\n\t\t\t\"auth\": \"MYHASH\",\r\n\t\t\t\"email\": \"myemail\"\r\n\t\t}\r\n\t}\r\n}\r\n```\r\nOk, first sorted.\r\nBut everytime that I tried to push an image to my repos:\r\n```\r\n$ docker push index.docker.io/myuser/myrepo:latest\r\nThe push refers to a repository [docker.io/myuser/myrepo] (len: 1)\r\ne9917e246cb6: Preparing\r\nunauthorized: access to the requested resource is not authorized\r\n```\r\nAfter a bit of research, I had the suspicious that he is not using my Login credentials because he is trying to connect against the win registry so, i modified my config.json adding the same credentials for index.docker.io for the registry-win.. like this:\r\n```\r\n{\r\n\t\"auths\": {\r\n\t\t\"https://index.docker.io/v1/\": {\r\n\t\t\t\"auth\": \"myhash\",\r\n\t\t\t\"email\": \"myemail\"\r\n\t\t},\r\n\t\t\"https://registry-win-tp3.docker.io/v1/\": {\r\n\t\t\t\"auth\": \"myhash\",\r\n\t\t\t\"email\": \"mydomain\"\t\t\t\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nAnd doing this, everything start to working properly.\r\n\r\nHope it helps\r\n\r\nMy Docker Installation Details are:\r\n**$ docker info**\r\n```\r\nContainers: 2\r\nImages: 115\r\nServer Version: 1.9.0\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 119\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 4.1.12-boot2docker\r\nOperating System: Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015\r\nCPUs: 1\r\nTotal Memory: 7.696 GiB\r\nName: default\r\nID: IDUNNOIFTHISISIMPORTANT\r\nDebug mode (server): true\r\n File Descriptors: 24\r\n Goroutines: 88\r\n System Time: 2015-11-18T16:13:52.691740338Z\r\n EventsListeners: 1\r\n Init SHA1:\r\n Init Path: /usr/local/bin/docker\r\n Docker Root Dir: /mnt/sda1/var/lib/docker\r\nUsername: myuser\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\n provider=virtualbox\r\n```\r\n**$ docker version**\r\n```\r\nClient:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.3\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 19:20:09 UTC 2015\r\n OS/Arch:      windows/amd64\r\n\r\nServer:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.3\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 19:20:09 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```"}}