Docker Alpine /bin/sh apk not found

2019-04-22 04:44发布

问题:

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

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.

回答1:

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