{"id":3691,"date":"2017-10-04T06:42:42","date_gmt":"2017-10-04T06:42:42","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=3691"},"modified":"2017-10-04T07:02:01","modified_gmt":"2017-10-04T07:02:01","slug":"login-docker-hub-command-line","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/quick-tips\/login-docker-hub-command-line\/","title":{"rendered":"How to login to Docker hub from the command line"},"content":{"rendered":"<h2>TL;DR<\/h2>\n<blockquote><p>\n  you have to enter your Docker ID, and not your email address ?\n<\/p><\/blockquote>\n<h2>!Tl;DR<\/h2>\n<p>In this quick tip, I&#8217;ll show you (and help me remember forever and always ?) how to login to Docker hub from the command line.<\/p>\n<blockquote><p>\n  I won&#8217;t go into details of why and how Docker is great and why all devs should use it, I&#8217;ll leave that for some other post&#8230;\n<\/p><\/blockquote>\n<p>I&#8217;m using the <a href=\"https:\/\/store.docker.com\/editions\/community\/docker-ce-desktop-mac\">Docker for Mac<\/a> desktop app.<\/p>\n<blockquote><p>\n  You can download a version for your operating system <a href=\"https:\/\/www.docker.com\/get-docker\">here<\/a>.\n<\/p><\/blockquote>\n<p>Via the Docker for Mac app I could login without a problem with my email and password.<\/p>\n<p>However, if I typed <code>docker login<\/code> from the command line, it would constantly keep telling me I provided wrong credentials. On <a href=\"https:\/\/github.com\/docker\/hub-feedback\/issues\/831\">this Github issue<\/a> I found the solution:<\/p>\n<blockquote><p>\n  you have to enter your Docker ID, and not your email address ?\n<\/p><\/blockquote>\n<blockquote class=\"twitter-tweet\" data-width=\"550\">\n<p lang=\"en\" dir=\"ltr\">How to login to <a href=\"https:\/\/twitter.com\/hashtag\/Docker?src=hash&amp;ref_src=twsrc%5Etfw\">#Docker<\/a> hub from the <a href=\"https:\/\/twitter.com\/hashtag\/command?src=hash&amp;ref_src=twsrc%5Etfw\">#command<\/a> line <a href=\"https:\/\/t.co\/kDkBHilEyO\">https:\/\/t.co\/kDkBHilEyO<\/a><\/p>\n<p>&mdash; Nikola Bre\u017enjak (@HitmanHR) <a href=\"https:\/\/twitter.com\/HitmanHR\/status\/915471555823652864?ref_src=twsrc%5Etfw\">October 4, 2017<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR you have to enter your Docker ID, and not your email address ? !Tl;DR In this quick tip, I&#8217;ll show you (and help me remember forever and&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3692,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-3691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quick-tips"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=3691"}],"version-history":[{"count":2,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3691\/revisions"}],"predecessor-version":[{"id":3697,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3691\/revisions\/3697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/3692"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=3691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=3691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=3691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}