Skip to main content
22 events
when toggle format what by license comment
Nov 11, 2022 at 0:12 comment added Don Kirkby With docker 1.6.2, I found it in ~/.dockercfg.
Nov 14, 2021 at 5:49 comment added Shōgun8 @Fransesco, so the answer is that there is no way to check. This certainly doesn't work because this file stays populated indefinitely until you actively perform docker logout. But just because the file is populated with a variable does not mean that you are logged in.
Nov 13, 2021 at 11:02 comment added Francesco de Guytenaere @Shōgun8 there simply is no other way at the moment of writing, there are also alternatives mentioned if you do not want to check the file.
Nov 13, 2021 at 6:02 comment added Shōgun8 That file will be populated even if you had an unsuccessful login.
May 22, 2020 at 11:02 comment added John Smith Optional docker logout doesn't empty the "auths" entry in configjson, at least it doesn't for me
Jan 14, 2020 at 17:37 history edited Francesco de Guytenaere CC BY-SA 4.0
Removed obsolete and uneccesary text to enhance readability
Jan 9, 2020 at 20:15 history edited Francesco de Guytenaere CC BY-SA 4.0
Removed the "however" as the quote already implies it is stored on disk.
Jan 3, 2020 at 22:38 comment added Francesco de Guytenaere @duane That is what Dusan refers to in the first comment; it's the post I linked in the bottom of my original post that refers to the config.json entry. @Teekin The link I added in my initial post 4 years ago (See bottom), refers to a similar question that contains several scripting solutions. Did you check those?
Jan 3, 2020 at 22:27 history edited Francesco de Guytenaere CC BY-SA 4.0
Included ellipsis to show file below continues with more content which is irrelevant to the post (and hence excluded)
Jan 3, 2020 at 18:25 history edited Francesco de Guytenaere CC BY-SA 4.0
added 4 characters in body
Jan 3, 2020 at 18:18 history edited Francesco de Guytenaere CC BY-SA 4.0
added 1519 characters in body
Jan 3, 2020 at 18:13 history edited Francesco de Guytenaere CC BY-SA 4.0
added 1519 characters in body
Jun 17, 2019 at 13:57 comment added user10470 This only works for the main docker hub, I think. Authing to any other repo you'll have to check your config.json file.
Jul 7, 2018 at 11:03 comment added Teekin What if a script needs to check?
Jun 24, 2018 at 17:04 history edited Francesco de Guytenaere CC BY-SA 4.0
added 663 characters in body
Jun 22, 2018 at 1:24 comment added Giovanni Bassi docker info is not showing Username anymore. I am on Windows, with docker version 18.05.0-ce.
Apr 25, 2018 at 6:15 comment added famousgarkin docker info is apparently unreliable even for index.docker.io. Currently logged in alright and only see the Registry entry, no Username.
Nov 27, 2017 at 15:39 comment added dusan The last link talks about checking the contents of ~/.docker/config.json.
May 23, 2017 at 12:10 history edited URL Rewriter Bot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Apr 14, 2016 at 23:07 history edited Francesco de Guytenaere CC BY-SA 3.0
Corrected answer with note it works only for a specific registry
Mar 16, 2016 at 8:44 vote accept Ville Miekk-oja
Mar 15, 2016 at 23:07 history answered Francesco de Guytenaere CC BY-SA 3.0