uber-archive / makisu

Fast and flexible Docker image building tool, works in unprivileged containerized environments like Mesos and Kubernetes.
Apache License 2.0
2.41k stars 156 forks source link

alpine openssl multistage dockerfile #306

Open kenotsolutions opened 4 years ago

kenotsolutions commented 4 years ago

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