For the check fully-qualified-image the function reference.ParseAnyReference is used to discover how docker will interpret a container image reference, for images on docker hub that are official images it results in a reference like docker.io/library/busybox:1.2.3 but another valid fully qualified reference would be docker.io/busybox:1.2.3.
This change adds a test to check that docker.io/busybox:1.2.3 gives no warnings and adds a function for comparing image references that takes the optional nature of "library" into account.
For the check
fully-qualified-image
the functionreference.ParseAnyReference
is used to discover how docker will interpret a container image reference, for images on docker hub that are official images it results in a reference likedocker.io/library/busybox:1.2.3
but another valid fully qualified reference would bedocker.io/busybox:1.2.3
.This change adds a test to check that
docker.io/busybox:1.2.3
gives no warnings and adds a function for comparing image references that takes the optional nature of "library" into account.