对接器合成错误:“无法解决:rpc错误:代码=未知desc =无法用前端dockerfile.v0解决”

nnt7mjpx  于 2022-11-22  发布在  Docker
关注(0)|答案(1)|浏览(85)

我是一个很新的使用docker,特别是docker-compose,我试图创建一个docker-compose,但它失败了:“无法解决:rpc错误:代码=未知desc =无法用前端dockerfile.v0解决:无法读取停靠文件:打开/var/lib/docker/临时文件/构建工具包安装155987974/停靠文件:没有这样的文件或目录””。我的docker-compose看起来像这样:

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有人知道如何修复此错误吗?

xuo3flqw

xuo3flqw1#

尝试使用

DOCKER_BUILDKIT=0 docker-compose build
docker-compose up

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

相关问题