21657: Update docker archive ID introspection code for OCIv2. 21657-diag-docker-format
authorTom Clegg <tom@curii.com>
Thu, 11 Apr 2024 14:35:17 +0000 (10:35 -0400)
committerTom Clegg <tom@curii.com>
Thu, 11 Apr 2024 14:35:17 +0000 (10:35 -0400)
commitefc7e2a46e0a82bf9d1af0761f2970076c6f1203
tree57bfee25df63307f6e58f5c2b2d0ab83fbe25647
parent5a5c399ed4196dcae9a694ac63d94334cac790aa
21657: Update docker archive ID introspection code for OCIv2.

Also, when not using the built-in image, we already rely on having
docker tools available, so use `docker inspect` instead of trying to
read the tarball.

This way the introspection code now only needs to work on the built-in
image.  And now there's a test for that.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/diagnostics/cmd.go
lib/diagnostics/docker_image_test.go [new file with mode: 0644]