找不到 Docker Alpine/bin/sh apk [英] Docker Alpine /bin/sh apk not found
本文介绍了找不到 Docker Alpine/bin/sh apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在构建一个新的 Docker 镜像:
I am building a new Docker image with:
FROM alpine:3.4
RUN apk upgrade --update
但是,它因错误而失败:
However, its failing with the error:
[INFO] /bin/sh: apk: not found
这似乎在我的本地机器 (Mac OSX) 上运行良好,但是当我尝试在 Linux CentOS 7 机器上构建它时却失败了.
This seems to work fine on my local machine (Mac OSX) but when I try building it on a Linux CentOS 7 machine it fails.
推荐答案
最后我们升级了我们的项目以使用这个 Docker Maven 插件:https://github.com/fabric8io/fabric8-maven-plugin.目前没有问题.
In the end we upgraded our projects to use this Docker Maven plugin: https://github.com/fabric8io/fabric8-maven-plugin. No issue thus far.
这篇关于找不到 Docker Alpine/bin/sh apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文