estesp / manifest-tool

Command line tool to create and query container image manifest list/indexes
Apache License 2.0
741 stars 92 forks source link

Properly fix path/file handling for the --docker-cfg flag #169

Closed estesp closed 2 years ago

estesp commented 2 years ago

Signed-off-by: Phil Estes estesp@gmail.com

estesp commented 2 years ago

Whatever I did in #168.. sigh. Obviously not correct. This should properly fix it.

estesp commented 2 years ago

Verified working with this commit:

$ ./manifest-tool --docker-cfg=/home/ubuntu/somefile.json inspect NNNNNNNNNN.dkr.ecr.us-east-2.amazonaws.com/testimage:latest
Name:   NNNNNNNNNN.dkr.ecr.us-east-2.amazonaws.com/testimage:latest (Type: application/vnd.docker.distribution.manifest.list.v2+json)
Digest: sha256:ec51c8b2003bd7ee36a658e538e6804c6f59a09a938d44db26232ad70eb3e320
 * Contains 4 manifest references: