「Docker」- Cannot autolaunch D-Bus without X11 $DISPLAY @20210228

Problem Description

When executing the docker command, the following error is generated:

Cannot autolaunch D-Bus without X11 $DISPLAY

problem causes

In Docker, there are many ways to store credentials (in this case, docker login credentials), refer to the docker login document. Usually (default), the method we use is to save it in .docker/config.json and save it in the auths field of the file with base64 encoding.

But in our scenario, we use the secretservice storage method, but this credential storage method is not supported. This method will link to the D-Bus service, which will cause this error.

solution

Remove the "credsStore": "secretservice" configuration in ~/.docker/config.json

references

docker login fails while docker-compose is installed on Ubuntu 18.04 · Issue #6023 · docker/compose

Guess you like

Origin blog.csdn.net/u013670453/article/details/114213647