"RUN apt add ..." got ERROR: unsatisfiable constraints

Hello,

I’m going through the Developer - Beginner course. section 2.3.2. It seems something is wrong with the Dockerfile in the exercise. the command gives the following output:

Step 2 : RUN apk add --update py-pip
—> Running in fed7fd0fcb6a
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
py-pip (virtual):
provided by: py2-pip
required by: world[py-pip]
The command ‘/bin/sh -c apk add --update py-pip’ returned a non-zero code: 1

Can anyone please point out what is missing? I’m doing this on a lenovo T61 laptop with 4GB RAM, running Ubuntu 16.04.

Hi… Firstly I am a newbie to this :slight_smile: - but I hit the same issue and managed to get around it by specifying:
FROM alpine:3.4 in my Dockerfile instead of latest

Assuming v3.4 is ok for you, hopefully it will solve it. If not, I would suggest removing previous alpine images you have in docker and try again (have not tried this… just a hunch tbh)

Hope it helps.

Hi deanh69, thanks so much for sharing the tip. Yes now the build complete without error. But the app keeps returning “GET / HTTP/1.1” 500. Is yours running ok?

thanks miuch.
bfz