Timeline for How to know if docker is already logged in to a docker registry server
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 11, 2018 at 6:08 | comment | added | Oliver | However someone pointed out on github.com/moby/moby/issues/15466 that there are many reasons for failure, not just login issue, yet docker exit status does not allow to differentiate reason for failure. It's still better than the other solutions, but a full solution would require a patch to docker. | |
Nov 11, 2018 at 6:00 | comment | added | Oliver | This is by far the best stratgy: just try a pull, if it fails then it is not logged in (the rest of the logic you have will depend on each use case, but the first try is universally applicable). | |
Oct 11, 2018 at 23:47 | history | answered | Christian | CC BY-SA 4.0 |