About docker login in Ubuntu 18.04

Linux 专栏收录该内容
256 篇文章 0 订阅
lwk@langzhou:~$ docker login --username="qwfys" --password="123456" 
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
** Message: 15:31:20.239: Remote error from secret service: org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login
Error saving credentials: error storing credentials - err: exit status 1, out: `No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login`
lwk@langzhou:~$ 

经多方查找,发现是系统默认安装了golang-docker-credential-helpers,卸载以后就好了。

lwk@langzhou:~$ sudo apt purge golang-docker-credential-helpers 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  javascript-common libglu1-mesa libjemalloc1 libjs-jquery libjs-jquery-metadata libjs-jquery-tablesorter libodbc1 libsctp1 libwxbase3.0-0v5 libwxgtk3.0-0v5 python-backports.ssl-match-hostname python-cached-property python-certifi
  python-dockerpty python-docopt python-funcsigs python-functools32 python-jsonschema python-mock python-openssl python-pbr python-requests python-texttable python-urllib3 python-websocket redis-tools socat
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  golang-docker-credential-helpers* python-docker* python-dockerpycreds*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 1921 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 211235 files and directories currently installed.)
Removing python-docker (2.5.1-1) ...
Removing python-dockerpycreds (0.2.1-1) ...
Removing golang-docker-credential-helpers (0.5.0-2) ...
lwk@langzhou:~$
lwk@langzhou:~$ docker login --username="qwfys" --password="123456" 
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
lwk@langzhou:~$

参考文献

  • 1
    点赞
  • 0
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

©️2022 CSDN 皮肤主题:技术黑板 设计师:CSDN官方博客 返回首页

打赏作者

qwfys200

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值