使用docker登录时,输入密码完成后报错 Cannot autolaunch D-Bus without X11 $DISPLAY

docker login
username:xxx
password:(xxx)
...Cannot autolaunch D-Bus without X11 $DISPLAY...

正常登录会显示Login Succeed,而账号、密码输入错误也有incorrect的提示

问题出在Linux缺少一个密码管理包gnupg,它用于加密,我们在登录时需要这个包将密码加密后才能完成,因此直接安装

sudo apt install gnupg2 pass
 

GnuPG官网

之后重复一遍docker login即可完成登录了

最近在linux(CentOS)中运行gedit时发现: 如果用普通用户运行,不会报错但是不会出现Preferences (首选项)等选项,不能进行基本参数的更改; 如果采用su 运行则会爆出以下错误: (gedit:5010): dconf-WARNING **: failed to commit changes to dconf: 连接已关闭 经过查找资料,受博文“gedit各种出错”中的案例... 在 Docker 中,有很多凭证(在该案例中,指 docker login 凭证)存储的方式,参考 docker login 文档。通常(默认),我们采用的方式是保存在 .docker/config.json 中,以 base64 编码保存在该文件的 auths 字段中。 但是在我们的场景中,我们采用 secretservice 存储方. WARNING **: 17:25:38.208: Error on getting connection: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY Unable to init server: 无法连接:拒绝连接   前些天在最新版kali中使用 nautilus 文件管理器的时,在kail的终端中报错:Cannot autolaunch D-Bus without X11 $DISPLAY, 在 Docker 中,有很多凭证(在该案例中,指 docker login 凭证)存储的方式。这包括我们已知的:以 base64 编码保存在 ~/.docker/config.json 文 若装了,则需卸载docker-compose后再执行docker命令,应该是个bug,近期会修复吧?请查看 sudo apt-get autoremove --purge docker-compose #清理docker-compose 清理docker... docker-compose version 1.17.1, build unknown docker-py version: 2.5.1 CPython version: 2.7.15rc1 OpenSSL version: OpenSSL 1.1.0g  2 Nov 2017 卸载docker... 如果想要拉取私有镜像,需要先登录到镜像仓库,这是件相当简单的事情。 但是(凡事走有但是),却会遇到各种问题。比如 Cannot autolaunch D-Bus without X11 $DISPLAY 错误。 该笔记将记录:登录 Docker 镜像仓库的方法,以及常见问题处理。 登录镜像仓库的方法很简单: docker login # 登录 DockerHub 仓库 # 登录私有镜像仓库 docker login http://registry.example.co. docker login x509: cannot validate certificate for because it doesn't contain any IP SANs WSL(Linux子系统) gedit 报错 failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory) 安装下面这些包可能会解决问题 sudo apt-get install x11-xserver-utils dconf-edito... Docker容器的退出操作有两种情况,1、容器外面,关闭容器,这种情况退出方式多样,存在着是否保存他的运行情况,Ctrl+P和Ctrl+Q分别按,可以退出容器,让容器仍运行,命令Ctrl+C和exist退出容器,不运行、在容器里面退出可以使用`docker stop 容器名/id`。第二方面,是关于启动的,我们可以使用 `docker attach 容器名/id` 连接已经启动的容器 和`docker start 容 docker登录报错“Couldn't login to docker hub. Error - login attempt to https://hub.docker.com/v2/ failed with status: 404 Not Found” Error saving credentials: error storing credentials - err: exit status 1, out: Cannot autolaunch D-Bus without X11 $DISPLAY 解决方案: 1)卸载已有的docke-compose sudo apt-get autoremove --purge docker-compo...