docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not...

ubuntu运行命令:sudo docker-compose up -d 报错:

(qa2) user@DESKTOP-QB5ALJE:~$ sudo docker-compose up -d
Pulling etcd (quay.io/coreos/etcd:v3.5.0)...
Traceback (most recent call last):
  File "docker-compose", line 3, in 
  File "compose/cli/main.py", line 81, in main
  File "compose/cli/main.py", line 203, in perform_command
  File "compose/metrics/decorator.py", line 18, in wrapper
  File "compose/cli/main.py", line 1186, in up
  File "compose/cli/main.py", line 1182, in up
  File "compose/project.py", line 664, in up
  File "compose/service.py", line 358, in ensure_image_exists
  File "compose/service.py", line 1251, in pull
  File "compose/progress_stream.py", line 99, in get_digest_from_pull
  File "compose/service.py", line 1218, in _do_pull
  File "docker/api/image.py", line 411, in pull
  File "docker/auth.py", line 48, in get_config_header
  File "docker/auth.py", line 324, in resolve_authconfig
  File "docker/auth.py", line 235, in resolve_authconfig
  File "docker/auth.py", line 262, in _resolve_authconfig_credstore
  File "docker/auth.py", line 287, in _get_store_instance
  File "docker/credentials/store.py", line 25, in __init__
docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not available in PATH
[16687] Failed to execute script docker-compose

解决办法:

先运行:rm ~/.docker/config.json
再运行:sudo docker-compose up -d

(qa2) user@DESKTOP-QB5ALJE:~$ sudo docker-compose ps
(qa2) user@DESKTOP-QB5ALJE:~$ sudo docker-compose up -d
Pulling etcd (quay.io/coreos/etcd:v3.5.0)...
v3.5.0: Pulling from coreos/etcd
1813d21adc01: Pull complete
6e96907ab677: Pull complete
444ed0ea8673: Pull complete
0fd2df5633f0: Pull complete
8cc22b9456bb: Pull complete
7ac70aecd290: Pull complete
4b376c64dfe4: Pull complete
Digest: sha256:28759af54acd6924b2191dc1a1d096e2fa2e219717a21b9d8edf89717db3631b
Status: Downloaded newer image for quay.io/coreos/etcd:v3.5.0
Pulling minio (minio/minio:RELEASE.2020-12-03T00-03-10Z)...
RELEASE.2020-12-03T00-03-10Z: Pulling from minio/minio
188c0c94c7c5: Pull complete
ed66f2d577c3: Pull complete
b40a74db8d08: Pull complete
c77f9df7200e: Pull complete
14d4e804ec54: Pull complete
3bd551264400: Pull complete
Digest: sha256:ae3d81ace3abbc388bf62fd860c4e4ab2bb31f0a226c1e3562164cba612c98bc
Status: Downloaded newer image for minio/minio:RELEASE.2020-12-03T00-03-10Z
Pulling standalone (milvusdb/milvus:v2.0.1)...
v2.0.1: Pulling from milvusdb/milvus
171857c49d0f: Pull complete
419640447d26: Pull complete
f721da5f90e4: Pull complete
79be2a516a94: Pull complete
8bdcd77964e6: Pull complete
dc6c6f95af66: Pull complete
a0224a991686: Pull complete
f22166c00bba: Pull complete
5186d5863148: Pull complete
b410b80e82c0: Pull complete
Digest: sha256:91664d048e38e134f05573a2d2b87ceb9e4bdc3d67cceef9b34c388624cae9b9
Status: Downloaded newer image for milvusdb/milvus:v2.0.1
Creating milvus-etcd  ... done
Creating milvus-minio ... done
Creating milvus-standalone ... done

参考资料

https://github.com/docker/for-win/issues/12355

你可能感兴趣的:(docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not...)