You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
$sudo DOCKER_CONTENT_TRUST=1 docker pull ubuntu:focal
Pull (1 of 1): ubuntu:focal@sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c: Pulling from library/ubuntu
Digest: sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
Status: Image is up to date for ubuntu@sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
Tagging ubuntu@sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c as ubuntu:focal
docker.io/library/ubuntu:focal
I see that the image creation date is given by
$sudo docker inspect ubuntu:focal | grep Created
"Created": "2020-11-25T22:25:29.546718343Z",
And I see that in the files in the delivered tarfile.
If I just do $sudo docker pull ubuntu:focal then I get
$ sudo docker pull ubuntu:focal
focal: Pulling from library/ubuntu
Digest: sha256:3c9c713e0979e9bd6061ed52ac1e9e1f246c9495aa063619d9d695fb8039aa1f
Status: Downloaded newer image for ubuntu:focal
docker.io/library/ubuntu:focal
$sudo docker inspect ubuntu:focal | grep Created
"Created": "2021-04-03T00:53:09.625644166Z",
Which is a date I can find at canonical.com
I'm writing an open source tool to do a security check on docker images based on the original released image so I'd like to know where the source image can be found for any given docker release.
Is there a place that I can find the source image for the docker image created with sudo DOCKER_CONTENT_TRUST=1 docker pull ubuntu:focal ?
The text was updated successfully, but these errors were encountered:
What's the best practices then for checking the security of ubuntu:focal images downloaded from docker?
I'm guessing that I could:
(1) Ignore "DOCKER_CONTENT_TRUST=1 " and just do my own binary diffs against versions that can be found by both docker.io and partner-images.canonical.com
or
(2) wait until each docker signs each version and save a local version released by canonical for future download checks.
Yep, it's definitely unfortunate and I wish there were something more we could do 😞
If you're really paranoid, I'd suggest checking the contents of the image against the associated tarballs from https://partner-images.canonical.com/core/ as you've indicated.
I do that but it's kind of a grind to do it manually and a lot of other docker images use Ubuntu as the core anyway, so that's why I've been writing a bash tool to automate that comparison, which led to this question. https://github.com/AJRepo/docker_image_checks
I guess I'll close this ticket then. Thanks again.
Hi,
Thanks for a great resource.
I'm trying to check the docker supplied image vs the ones at https://partner-images.canonical.com/core/focal/
If I do a pull with
I see that the image creation date is given by
But that image creation date is prior to any of the images listed at https://partner-images.canonical.com/core/focal/
And I see that in the files in the delivered tarfile.
If I just do
$sudo docker pull ubuntu:focal
then I getWhich is a date I can find at canonical.com
I'm writing an open source tool to do a security check on docker images based on the original released image so I'd like to know where the source image can be found for any given docker release.
Is there a place that I can find the source image for the docker image created with
sudo DOCKER_CONTENT_TRUST=1 docker pull ubuntu:focal
?The text was updated successfully, but these errors were encountered: