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

alpine openssl multistage dockerfile  #306

Open
@kenotsolutions

Description

@kenotsolutions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions