theohbrothers / Generate-DockerImageVariants

Easily generate a repository populated with Docker image variants. 🐳
MIT License
2 stars 1 forks source link

Built images not shown in CI logs for ‘List docker images’ steps #58

Closed joeltimothyoh closed 1 year ago

joeltimothyoh commented 2 years ago

Curious as to why this is so.

Examples:

leojonathanoh commented 2 years ago

when using docker buildx it's no longer the same as using docker build. each build runs inside a VM so i think there needs a special syntax to list the built images.

leojonathanoh commented 2 years ago

Perhaps one may use docker buildx imagetools image to list arch builds https://docs.docker.com/engine/reference/commandline/buildx_imagetools/, . But to get the same output as docker build, doesn't seem possible at least not that i know of.

joeltimothyoh commented 2 years ago

It’s strange this negation was never spotted as though the CI logs were never looked through. @leojonathanoh

leojonathanoh commented 2 years ago

i have always looked through, but i never had time to ensure the CI jobs had outputs like the traditional docker build, because as i said it is not possible with docker buildx. It's not that the output was omitted or neglected, but that there was no way to output using docker CLI at least at the moment.

Even with docker buildx imagetools <image> (which is still a docker CLI plugin as of yet), that command only lists the architectures of each image, and their image digests, but no way as what one would expect with docker images.

leojonathanoh commented 2 years ago

@joeltimothyoh is this still an issue? we could add docker buildx imagetools <image>, but i'd say it won't be very helpful at all, since docker buildx itself already shows the detail logs for each archs being built.

If we decide not to implement this, we can close this.

leojonathanoh commented 1 year ago

Closing. docker buildx cannot list the images because it's using the docker-container builder type, as explained earlier.