docker openssl-dev unsatisfiable constraints
When running the official docker images and installing openssl-dev with other dev packages that uses ssl libraries too I get this error:
ERROR: unsatisfiable constraints:
libressl-dev-2.4.4-r0:
conflicts:
openssl-dev-1.0.2k-r0[pc:libcrypto=2.4.4]
openssl-dev-1.0.2k-r0[pc:libssl=2.4.4]
openssl-dev-1.0.2k-r0[pc:openssl=2.4.4]
satisfies:
mariadb-dev-10.1.21-r0[libressl-dev]
openssl-dev-1.0.2k-r0:
conflicts:
libressl-dev-2.4.4-r0[pc:libcrypto=1.0.2k]
libressl-dev-2.4.4-r0[pc:libssl=1.0.2k]
libressl-dev-2.4.4-r0[pc:openssl=1.0.2k]
satisfies: world[openssl-dev]
I tried it with the available images. With 3.4 it builds without
problems.
3.5 and edge does not compile.
Here the Dockerfile:
### start ###
FROM alpine:3.5
RUN apk —update add \
openssl-dev libssh2-dev
#openssl-dev mariadb-dev
CMD [“echo bug”]
### stop ###
I figure out following packages that cause the problem:
openssl-dev with libssh2-dev or
openssl-dev with mariadb-dev
Same result on these Platforms
Mac: Docker version 1.13.1, build 092cba3
CoreOS: Docker version 1.8.3, build cedd534-dirty
Regards Thomas
(from redmine: issue id 6904, created on 2017-02-21, closed on 2017-02-24)