Closed
Description
A few hours ago, I was able to build an image based on openjdk:8-jre-alpine
. Now, this step of the build:
Step 2/13 : RUN ["apk", "--update", "add", "bash"]
gives me an error:
[info] ---> Running in a73860f5a032
[info] fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
[info] ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: Permission denied
[info] WARNING: Ignoring APKINDEX.b89edf6e.tar.gz: No such file or directory
[info] fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
[info] ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/community: Permission denied
[info] WARNING: Ignoring APKINDEX.737f7e01.tar.gz: No such file or directory
[info] ERROR: unsatisfiable constraints:
[info] bash (missing):
[info] required by: world[bash]
[info] Removing intermediate container a73860f5a032
[error] The command 'apk --update add bash' returned a non-zero code: 1
I build my image using sbt-native-packager plugin.