Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Error while building the image #60

Open
SridharVee opened this issue Jul 15, 2020 · 1 comment
Open

Error while building the image #60

SridharVee opened this issue Jul 15, 2020 · 1 comment

Comments

@SridharVee
Copy link

Sending build context to Docker daemon 23.64MB
Step 1/14 : FROM alpine:3.11
3.11: Pulling from library/alpine
Digest: sha256:9a839e63dad54c3a6d1834e29692c8492d93f90c59c978c1ed79109ea4fb9a54
Status: Image is up to date for alpine:3.11
---> f70734b6a266
Step 2/14 : ENV CLAM_VERSION=0.102.1-r0
---> Using cache
---> abae15b6cdfd
Step 3/14 : RUN apk add --no-cache clamav=$CLAM_VERSION clamav-libunrar=$CLAM_VERSION
---> Running in 05d18cd75e29
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
clamav-0.102.3-r0:
breaks: world[clamav=0.102.1-r0]
clamav-libunrar-0.102.3-r0:
breaks: world[clamav-libunrar=0.102.1-r0]
The command '/bin/sh -c apk add --no-cache clamav=$CLAM_VERSION clamav-libunrar=$CLAM_VERSION' returned a non-zero code: 2

@DVigneswara
Copy link

This is due to it not finding the apk from alpine 3.11, the version probably does not exist.

replace "ENV CLAM_VERSION=0.102.1-r0" with "ENV CLAM_VERSION=0.102.3-r0".

worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants