When trying to build and test the output Docker image provided by the nix flake it happens so that Podman/Docker is unable to load the image artifact.
Steps to get the error output:
nix build --json --print-build-logs ".#docker"
docker-layer-example> No contents to add to layer.
docker-layer-example> Packing layer...
docker-layer-example> Finished building layer 'example'
docker-image-example.tar.gz> Adding layer...
docker-image-example.tar.gz> tar: Removing leading `/' from member names
docker-image-example.tar.gz> Adding meta...
docker-image-example.tar.gz> Cooking the image...
docker-image-example.tar.gz> Finished.
podman image load -i ./result
Error: payload does not match any of the supported image formats:
* oci: open result/index.json: not a directory
* oci-archive: loading index: open /var/tmp/container_images_oci1036265894/index.json: no such file or directory
* docker-archive: parsing image configuration: json: cannot unmarshal string into Go struct field ImageConfig.config.Cmd of type []string
* dir: open result/manifest.json: not a directory
Issue
When trying to build and test the output Docker image provided by the nix flake it happens so that Podman/Docker is unable to load the image artifact.
Steps to get the error output: