zoukankan      html  css  js  c++  java
  • About docker login in Ubuntu 18.04

    最近想把自己的Docker镜像上传到Docker Hub和阿里云Docker镜像托管网站上,但是登录出现如下问题:

    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`

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

    执行命令卸载:

    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) ...

    最后登录成功:

    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
    酒是穿肠毒药,色是刮骨钢刀,财是惹祸根苗,气是雷烟火炮。 不过,无酒毕竟不成席,无色世上人渐稀,无财何人早早起,无气处处惹人欺。 饮酒不醉量为高,见色不迷真英豪,不义之财君莫取,忍气饶人祸自消。 酒色财气四堵墙,人人都在里边藏,谁若跳到墙外边,不是神仙也寿长。 君听我一言:做人,量体裁衣。
  • 相关阅读:
    CocoaPods安装使用及配置私有库及注意点
    CocoaPods 错误 target overrides the `OTHER_LDFLAGS`...
    如何判断ios设备中是否安装了某款应用
    symbol(s) not found for architecture arm64
    所有iOS设备的屏幕分辨率
    iOS禁止多点操作(按钮和Table项)
    计算日期时间间隔:
    "library not found for
    Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from:问题解决方法
    oracle游标(转载)
  • 原文地址:https://www.cnblogs.com/laosan007/p/12166763.html
Copyright © 2011-2022 走看看