docker compose 基于 dockerfile构建服务时,报错:
=> ERROR [internal] load metadata for docker.io/library/mongo:5.0.9 1.9s
------
> [internal] load metadata for docker.io/library/mongo:5.0.9:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 5.0.9]: 403 Forbidden
我的解决办法是:手动拉去镜像,在执行就好了
docker pull mongo:5.0.9