Adjusting the builder settings in Docker Desktop resolved the issue for me: in "Settings >> Builders" simply select the "default" builder instead of "linux-desktop" builder.
Suggested here: https://github.com/spring-projects/spring-boot/issues/41199#issuecomment-2217450150