Issue
When attempting to install a hotfix using Docker, the server appears to start normally but then shuts down abruptly. However when the hotfix is removed, everything starts up normally.
Environment
- DXP 7.3
- DXP 7.4
Resolution
This issue is likely due to insufficient memory, which can be resolved by either increasing the memory on the Liferay container or Docker itself:
-
Increase the memory to the Liferay container by increasing the value after the -m flag:
docker run -it -m 8g -p 8080:8080 liferay/portal:7.4.3.29-ga29 -
Check how much memory is allocated to the docker engine by navigating to Preferences > Resources > Advanced and increase the memory if it's less than 8GB.
Additional Information
- For MAC users, 8GB should be enough, but others reported that 12GB was needed.