linux - 使命令在 RHEL 中失败,但在 ubuntu 中通过
问题描述
在 red hat linux 上构建Service-Catalogmake
映像时遇到了奇怪的问题,在运行以下错误后发生了以下错误,而make
在 ubuntu 上同样可以正常工作。以下是错误
sed "s/GO_VERSION/1.12/g" < build/build-image/Dockerfile | \
docker build -t scbuildimage -f - .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /root/go_projects/src/github.com/kubernetes-sigs/service-catalog/-: no such file or directory
make: *** [.scBuildImage] Error 1
执行以下行时失败。
.scBuildImage: build/build-image/Dockerfile $$(shell sh -c "docker inspect scbuildimage" > /dev/null 2>&1 || echo .forceIt)
mkdir -p .cache
mkdir -p .pkg
sed "s/GO_VERSION/$(GO_VERSION)/g" < build/build-image/Dockerfile | \
docker build -t scbuildimage -f - .
touch $@
解决方案
推荐阅读
- algorithm - N个移动点之间的最短距离
- java - 如何在java中创建具有不同语言名称的目录?
- html - 文章与部分。在这种情况下应该使用哪一个?
- reactjs - Reactjs路由css问题
- azure - 带有两个 csv 文件的 Azure terraform 参数不起作用
- python - 在没有库的情况下计算 ROC 的不同阈值
- excel - 将 excel 中的名称与中间名和额外空格匹配
- c++ - 即使我添加了 Tools -> Debugging 的设置,.pdb 符号也不会加载
- firebase - 从登录用户 Flutter/Firebase 获取文档列表
- javascript - 可折叠 Div 的 JavaScript 全部折叠/显示全部切换按钮