Another approach would be to use the --iidfile parameter of docker build to have the id written to a file. This would be less brittle than trying to keep up with different docker/podman log outputs. A working prototype is here https://github.com/tnaroska/vagrant/commit/c8073cf440e401b35ce0a4ce78bd73e8ac33b7c7 This would require more elaborate changes in the unit tests though.
Fixes https://github.com/hashicorp/vagrant/issues/13342 adding another regex for the docker log format with containerd storage enabled.
Another approach would be to use the
--iidfile
parameter of docker build to have the id written to a file. This would be less brittle than trying to keep up with different docker/podman log outputs. A working prototype is here https://github.com/tnaroska/vagrant/commit/c8073cf440e401b35ce0a4ce78bd73e8ac33b7c7 This would require more elaborate changes in the unit tests though.