我是Docker的新手,我正尝试使用从此处下载的新首次安装docker(对于Windows 10)来遵循这个简单的“入门”教程https://docs.docker.com/compose/gettingstarted/:https://hub.docker.com/editions/community/docker-ce-desktop-windows/
在本教程的第4步中,我收到此错误:
PS D:\composetest> docker-compose up
Building web
Traceback (most recent call last):
File "site-packages\docker\credentials\store.py", line 80, in _execute
File "subprocess.py", line 395, in check_output
File "subprocess.py", line 487, in run
subprocess.CalledProcessError: Command '['C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker-credential-desktop.EXE', 'list']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose\cli\main.py", line 72, in main
File "compose\cli\main.py", line 128, in perform_command
File "compose\cli\main.py", line 1078, in up
File "compose\cli\main.py", line 1074, in up
File "compose\project.py", line 548, in up
File "compose\service.py", line 367, in ensure_image_exists
File "compose\service.py", line 1106, in build
File "site-packages\docker\api\build.py", line 261, in build
File "site-packages\docker\api\build.py", line 308, in _set_auth_headers
File "site-packages\docker\auth.py", line 302, in get_all_credentials
File "site-packages\docker\credentials\store.py", line 71, in list
File "site-packages\docker\credentials\store.py", line 93, in _execute
docker.credentials.errors.StoreError: Credentials store docker-credential-desktop exited with "error listing credentials - err: exit status 1, out: `Impossibile trovare elemento.`".
[13284] Failed to execute script docker-compose
编辑:很遗憾,docker-compose unable to start中接受的解决方案不起作用。
出了什么问题?
答案 0 :(得分:0)
尝试添加到环境路径:
C:\Program Files\Docker\Docker\resources\bin
如果您使用的是WSL2,请运行此命令
sudo ln -s /mnt/c/Program\ Files/Docker/Docker/resources/bin/docker-credential-desktop.exe /usr/bin/docker-credential-desktop.exe
答案 1 :(得分:0)
我也有同样的问题...
试试: $nano ~/.docker/config.json 在此文件中将 credsStore 更改为 credStore
现在运行你的 docker-compose。如果它不起作用,请尝试 sudo