1. 错误日志
failed to solve: failed to compute cache key: failed to calculate checksum of ref edf7ad9c-3617-4702-a7fd-1002d7ca82f1::q90bm8nfq07ew9xhjopvo5s3k: "/root/go/bin/dlv": not found
2. 详细错误日志
[root@harbor csi-driver-nfs]# make local-build-push
/bin/cp -f /root/go/bin/dlv ./bin/amd64/
docker build --build-arg ARCH="amd64" -t 192.168.11.20/csi/nfsplugin:latest .
[+] Building 0.0s (7/8) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.09kB 0.0s
=> [internal] load .dockerignore

文章描述了在尝试使用Dockerfile构建镜像时遇到的错误,具体是COPY命令无法找到/root/go/bin/dlv文件。作者分析了问题可能源于Dockerfile中的COPY目录设置,并提出了修改Dockerfile和Makefile的解决方案,将COPY路径更改为相对路径,从而解决了问题。
最低0.47元/天 解锁文章
1724

被折叠的 条评论
为什么被折叠?



