Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

alpine openssl multistage dockerfile #306

Open
kenotsolutions opened this issue Feb 19, 2020 · 0 comments
Open

alpine openssl multistage dockerfile #306

kenotsolutions opened this issue Feb 19, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@kenotsolutions
Copy link

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

@yiranwang52 yiranwang52 added the bug Something isn't working label Feb 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants