<p>Is there a way to identify the url from where container executing in Kubernetes POD was pulled from ?</p>

<p>The Kubernetes Image <a href="https://kubernetes.io/docs/concepts/containers/images/" rel="nofollow noreferrer">doc</a> indicate only image name is provided as part of Pod specification.</p>

<p>I would like to identify if image was pulled from Google Container Registry, Amazon ECR, IBM Cloud Container Registry etc.</p>

alwaysAStudent
<p>You can use the image id to understand that. Something like</p>

<pre><code>kubectl get pod pod-name-123 -o json | jq '.status.containerStatuses[] | .imageID'
</code></pre>

<p>will return something like:</p>

<pre><code>"docker-pullable://redacted.dkr.ecr.eu-west-2.amazonaws.com/docker-image-name@sha256:redacted"
</code></pre>

<p>In my example was pulled from aws ecr.</p>
