|
楼主 |
发表于 2022-4-22 19:22:21
|
显示全部楼层
docker compose报错
- [+] Building 0.1s (1/2)
- => [internal] load build definition from Dockerfile.server 0.0s
- => => transferring dockerfile: 2B 0.0s
- failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount505069646/Dockerfile.server: no such file or directory
- ERROR: Service 'server-node' failed to build : Build failed
复制代码 原因在于没有找到指定的dockerfile, 可以在build命令加上-f dockerfileName又或者是docker-compose.yml设置错误, 例如
- build:
- dockerfile: Dockerfile.server
- context: './server'
复制代码 这个context设置错误, 改成一点就可以正常build
|
|