alpine openssl multistage dockerfile
kenotsolutions opened this issue · 0 comments
Describe the bug
When installing OpenSSL in alpine phase two (FROM centos:7) gives x509: certificate signed by unknown authority error for example centos
cat Dockerfile
FROM alpine:3.9.5 AS test
RUN apk update && apk add ca-certificates
RUN apk add --no-cache openssl
#TO DO
FROM centos:7
Install
RUN
yum install -y haproxy && \
#use TO DO here
"msg":"failed to execute build plan: execute stage: build stage 1: build node: do execute: execute step: get manifest: pull image index.docker.io/library/centos:7: pull manifest: get security opt: basic auth: ping v2 registry: network error: Get https://index.docker.io/v2/: x509: certificate signed by unknown authority"}
I tried after #TO DO but no chance in the alpine phase.
RUN apk del ca-certificates
RUN apk del openssl
RUN apk update && apk add ca-certificates
RUN update-ca-certificates