Docker Alpine /bin/sh apk not found

alpine-linux, docker

Solution

In the end we upgraded our projects to use this Docker Maven plugin: https://github.com/fabric8io/fabric8-maven-plugin. No issue thus far.

Problem

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.

Original source

Related problems