Fixup Docker Login¶
If docker login ${SERVER}
is returning the following error, then these steps will resolve that.
Error saving credentials: error storing credentials - err: exit status 1, out:
Cannot autolaunch D-Bus without X11 $DISPLAY
You can either resolve this by temprarily removing golang-docker-credential-helpers
(and thus all things that depend on it, including docker-compose
).
apt remove docker-compose golang-docker-credential-helpers
docker login ...
apt install docker-compose
Or, if you install pass
, docker will use this for the credential store: (but in my experience, credentials are still stored in ~/.docker/config.json
)
apt install pass