docker报错milvus error getting credentials
iaoc@xiaocs-iMac Downloads % sudo docker-compose up -d WARN[0000] /Users/xiaoc/Downloads/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 2025/03/20 08:26:59 must use ASL logging (which requires CGO) if running as root 2025/03/20 08:26:59 must use ASL logging (which requires CGO) if running as root 2025/03/20 08:26:59 must use ASL logging (which requires CGO) if running as root [+] Running 0/3 ⠋ standalone Pulling 0.1s ⠋ etcd Pulling 0.1s ⠋ minio Pulling 0.1s error getting credentials - err: exit status 1, out: ``z
执行compose报错,参考下面解决方案:
I just ran into this. I installed Docker Desktop on my Mac. Then logged into my Docker Hub account in Docker Desktop. Then ran docker login
on the command line and it picked up my creds. Then I ran docker-compose up -d
(no sudo
) and I think it's working.
具体来说,下载docker desktop桌面端,然后登录后再命令行运行docker login,接着最重要的是
docker-compose up -d 不要加sudo