Chadrick Blog

fix "Certificate verification failed" error in apt update of docker container

Background

While working on a raw docker base image that didn’t even have basic tools installed, I tried to call apt update but the following error came up

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown

This error occurred even after setting “http_proxy” and “https_proxy” environment variables.

Solution

This stackoverflow answer fixed this issue.

Although it was bypass, this allowed me to avoid certificate verification during apt update.

However, after this anther error showed up. This will be discussed on another post.