[Gradle-8.14.1] "Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused," message

Anyone understand this properly and give me a work around please ?

In your runner building stage you run a Gradle command (RUN ./gradlew run --info --stacktrace) where a daemon is kept running.
Then the image is finalized, with the files that know that the daemon is running.
When you then execute that image, Gradle searches for this daemon and complains that it does not find it, starting a new one.

Either avoid the daemon persisting by using a one-shoe daemon with --no-deamon, or delete the files that record which daemons are running before finalizing the image.


Btw. you should not post usage questions as GitHub issues. They will be closed as usage-question anyway, sending you here or to the Slack server, and just waste the resources of the Gradle folks that need to review and close them. :slight_smile: