gpt4 book ai didi

docker - 启动Docker容器会产生docker-credential-secretservice:连接已关闭

转载 作者:行者123 更新时间:2023-12-02 18:44:12 25 4
gpt4 key购买 nike

我正在尝试从本教程(快速入门安装和教程)中启动docker容器:https://zuul-ci.org/docs/zuul/admin/quick-start.html#start-zuul-containers

WARNING: The no_proxy variable is not set. Defaulting to a blank string.
WARNING: The http_proxy variable is not set. Defaulting to a blank string.
Building node
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.17.1', 'console_scripts', 'docker-compose')()
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 68, in main
command()
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 121, in perform_command
handler(command, command_options)
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 952, in up
start=not no_start
File "/usr/lib/python2.7/dist-packages/compose/project.py", line 431, in up
svc.ensure_image_exists(do_build=do_build)
File "/usr/lib/python2.7/dist-packages/compose/service.py", line 318, in ensure_image_exists
self.build()
File "/usr/lib/python2.7/dist-packages/compose/service.py", line 923, in build
shmsize=parse_bytes(build_opts.get('shm_size')) if build_opts.get('shm_size') else None,
File "/usr/lib/python2.7/dist-packages/docker/api/build.py", line 238, in build
self._set_auth_headers(headers)
File "/usr/lib/python2.7/dist-packages/docker/api/build.py", line 285, in _set_auth_headers
self._auth_configs, registry
File "/usr/lib/python2.7/dist-packages/docker/auth.py", line 97, in resolve_authconfig
authconfig, registry, store_name
File "/usr/lib/python2.7/dist-packages/docker/auth.py", line 142, in _resolve_authconfig_credstore
'Credentials store error: {0}'.format(repr(e))
docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-secretservice exited with "The connection is closed".',)

是什么可能导致此错误?有什么解决方案?

我试图重新安装docker-compose&docker.io,但是没有成功。

谢谢。

最佳答案

我真的不能称其为解决方案,但它帮助我摆脱了这个问题并启动了容器。

这些步骤是:

  • ~/.docker/config.json中,删除行"credsStore":"secretservice"
  • cd zuul/doc/source/admin/examples
  • sudo -E docker-compose up

  • 容器应立即启动。

    关于docker - 启动Docker容器会产生docker-credential-secretservice:连接已关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56126794/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com