Docker login报错一例

在一台ubuntu 18.04上执行docker login 登录镜像仓库的时候,抛出如下异常:

error getting credentials - err: exit status 1, out: `Failed to execute child process “dbus-launch” (No such file or directory)`

原因可以参考这里:https://github.com/moby/moby/issues/34175

因为服务器安装了golang-docker-credential-hepers包,这个包是在使用apt包管理器安装docker-compose时装上的。

解决办法是先通过apt卸载掉golang-docker-credential-hepers这个包,然后再通过pip或者直接二进制的方式来安装docker-compose。这个包一旦卸载掉,docker login便执行正常。

posted @ 2018-06-20 10:01  breezey  阅读(2544)  评论(1编辑  收藏  举报