docker 撰写错误:"failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerf



我对使用docker非常陌生,尤其是docker-compose,我正试图创建一个docker-compase,但它失败了:"未能解决:rpc错误:code=未知desc=未能使用前端dockerfile.v0:未能读取dockerfile:open/var/lib/doker/tmp/buildkit-mount1559877974/dockerfile:没有这样的文件或目录"。我的docker作文看起来是这样的:

version: '3.7'
services:
document-mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
keyring-mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- 27018:27017
volumes:
- mongodb_data_container2:/data/db
document-api:
build:
context: https://github.com/International-Data-Spaces-Association/ids-clearing-house-core.git
container_name: "document-api"
depends_on:
- keyring-api
- document-mongo
environment:
# Allowed levels: Off, Error, Warn, Info, Debug, Trace
- API_LOG_LEVEL=Info
ports:
- "8001:8001"
volumes:
- ./data/document-api/Rocket.toml:/server/Rocket.toml
- ./data/certs:/server/certs
keyring-api:
build:
context: https://github.com/International-Data-Spaces-Association/ids-clearing-house-core.git
container_name: "keyring-api"
depends_on:
- keyring-mongo
environment:
# Allowed levels: Off, Error, Warn, Info, Debug, Trace
- API_LOG_LEVEL=Info
ports:
- "8002:8002"
volumes:
- ./data/keyring-api/init_db:/server/init_db
- ./data/keyring-api/Rocket.toml:/server/Rocket.toml
- ./data/certs:/server/certs
volumes:
mongodb_data_container:
mongodb_data_container2:

操作系统:Windows 10有人知道如何修复这个错误吗?

尝试使用

DOCKER_BUILDKIT=0 docker-compose build
docker-compose up 

来源:https://docs.docker.com/build/buildkit/

尝试擦除缓存。

"磁盘使用率";docker桌面的扩展非常有用。

相关内容

  • 没有找到相关文章

最新更新