b2c.load: allow specifying an image tag
The container image's full name may not be obvious when loading it:
- Podman does not specify how it will generate the image, since it is meant to be compatible with docker which did not specify it either
- We may have been given a tarball we never imported ourselves
- ...
As a workaround for this, we may want to allow b2c.load
to specify a tag that should be given to the container that got loaded. Here is the proposed interface: b2c.load=$filename,tag=myimage:version
Unfortunately, podman removed the ability to tag an image on load. We can achieve this by running podman tag ourselves, but this means b2c will need to parse the name of the image from podman's output (don't forget to add an integration test for this so that changes in the output don't silently break this feature).
Anyway, I spent way too long looking into the history of docker/podman's load command and it seems like a bit of a shitshow. I recommend https://github.com/containers/podman/issues/7387 if you want to learn more, as it is linked to by a lot of places!