Docker apk package for alpine linux has an unresolved dependency to libseccomp

Since yesterday my builds with the apk package are failing.

Sending build context to Docker daemon 2.048 kB
Step 1 : FROM alpine:3.3
 ---> d7a513a663c1
Step 2 : RUN apk add --update  --repository docker && rm -rf /var/cache/apk/*
 ---> Running in ca88c76c6a2c
ERROR: unsatisfiable constraints: (missing):
    required by:
The command '/bin/sh -c apk add --update  --repository docker && rm -rf /var/cache/apk/*' returned a non-zero code: 2

It looks like you are essentially mixing the edge community repository with the 3.3 main repository. 3.3 doesn’t have the libseccomp package, so it fails.

I can’t say that I’m experienced enough with alpine to give you terribly qualified best practices advice, but it seems like it would be ideal to run alpine edge instead of 3.3 if you want edge packages.

other than that, I was able to get the edge docker version installed on alpive 3.3 by doing the following:

$ apk --no-cache add --repository libseccomp
$ apk --no-cache add --repository docker
1 Like

or in one command:

$ apk add --no-cache  --repository --repository  docker

That worked like a charm. As you can see i am also not very experienced using alpine. But this took me a step further.

Many thanks,


It worked for me! Thank you!