It happens because of the console setup and a new docker layer.
In the first run iDempiere will configure the env variables and the keystore for https protocol. The docker saves the new files on a new layer. When it restarts it will use the previous layer then the console-setup.sh will fail and iDempiere won't start.
Thanks to Fkr Arif for reporting.
Solution
Removing the files before the console-setup.sh executing.
Issue context
It happens because of the console setup and a new docker layer. In the first run iDempiere will configure the env variables and the keystore for https protocol. The docker saves the new files on a new layer. When it restarts it will use the previous layer then the console-setup.sh will fail and iDempiere won't start.
Thanks to Fkr Arif for reporting.
Solution
Removing the files before the console-setup.sh executing.
rm -f idempiereEnv.properties jettyhome/etc/keystore
Links
Google group reference: https://groups.google.com/g/idempiere/c/8yHeFxMzNJ8/m/4iBF84NaBAAJ?pli=1