<p>I am running a Spring Boot application in Docker with Kubernetes.</p>

<p>While downloading an image I am getting the below error:</p>

<blockquote>
  <p>sun.security.validator.ValidatorException: PKIX path building failed:
  sun.security.provider.certpath.SunCertPathBuilderException: unable to
  find valid certification path to requested target</p>
</blockquote>

<p>How can I solve this problem?</p>

<p>Try adding the certificates to the docker image and installing them via keytool</p>
