Is there any way to log a whole machine / Docker daemon into a registry?
Everything I see about docker login and various proprietary credentials helpers uses ~/.docker/config.json
, i.e. is per-user.
I have a situation where I would like to pull images from a private registry; multiple people have both arbitrary sudo access on those machines and should be able to use Docker against our registry.
Since Docker access should be read as root access to a machine anyway (i.e. user credentials are not mutually safe if they can run Docker), and sudo access is same but directly, I would like to just cut to the chase and log the whole machine in without every user having to jump through hoops.
I could provide one file that everyone could link to their config.json
, but I would prefer if it was just taken care of from the first login on each machine.