Open SridharVee opened 4 years ago
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
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.
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