Compose version: docker-compose version 1.17.1, build unknown
Describe your bug: 直接docker-compose up部署,镜像和容器都能起来,但是容器无法启动,删除镜像重新部署也不行。
root@VM-0-4-ubuntu:/home/ubuntu/CVE-2020-7961# docker run vulhub/liferay-portal:7.2.0-ga1 -d -it
[LIFERAY] To SSH into this container, run: "docker exec -it 1b53d95e62ab /bin/bash".
[LIFERAY] Run this container with the option "-v $(pwd)/xyz123:/mnt/liferay" to bridge $(pwd)/xyz123 in the host operating system to /mnt/liferay on the container.
[LIFERAY] The directory /mnt/liferay/files does not exist. Create the directory $(pwd)/xyz123/files on the host operating system to create the directory /mnt/liferay/files on the container. Files in /mnt/liferay/files will be copied to /opt/liferay before Liferay Portal starts.
[LIFERAY] The directory /mnt/liferay/scripts does not exist. Create the directory $(pwd)/xyz123/scripts on the host operating system to create the directory /mnt/liferay/scripts on the container. Files in /mnt/liferay/scripts will be executed, in alphabetical order, before Liferay Portal starts.
[LIFERAY] The directory /mnt/liferay/deploy does not exist. Create the directory $(pwd)/xyz123/deploy on the host operating system to create the directory /mnt/liferay/deploy on the container. Copy files to $(pwd)/xyz123/deploy to deploy modules to Liferay Portal at runtime.
[LIFERAY] Starting Liferay Portal. To stop the container with CTRL-C, run this container with the option "-it".
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000740800000, 1610612736, 0) failed; error='Out of memory' (errno=12)
#
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 1610612736 bytes for committing reserved memory.
An error report file with more information is saved as:
root@VM-0-4-ubuntu:/home/ubuntu/CVE-2020-7961# docker run vulhub/liferay-portal:7.2.0-ga1 -d -it [LIFERAY] To SSH into this container, run: "docker exec -it 1b53d95e62ab /bin/bash".
[LIFERAY] Run this container with the option "-v $(pwd)/xyz123:/mnt/liferay" to bridge $(pwd)/xyz123 in the host operating system to /mnt/liferay on the container.
[LIFERAY] The directory /mnt/liferay/files does not exist. Create the directory $(pwd)/xyz123/files on the host operating system to create the directory /mnt/liferay/files on the container. Files in /mnt/liferay/files will be copied to /opt/liferay before Liferay Portal starts.
[LIFERAY] The directory /mnt/liferay/scripts does not exist. Create the directory $(pwd)/xyz123/scripts on the host operating system to create the directory /mnt/liferay/scripts on the container. Files in /mnt/liferay/scripts will be executed, in alphabetical order, before Liferay Portal starts.
[LIFERAY] The directory /mnt/liferay/deploy does not exist. Create the directory $(pwd)/xyz123/deploy on the host operating system to create the directory /mnt/liferay/deploy on the container. Copy files to $(pwd)/xyz123/deploy to deploy modules to Liferay Portal at runtime.
[LIFERAY] Starting Liferay Portal. To stop the container with CTRL-C, run this container with the option "-it".
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000740800000, 1610612736, 0) failed; error='Out of memory' (errno=12) #
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 1610612736 bytes for committing reserved memory.
An error report file with more information is saved as:
/opt/liferay/hs_err_pid8.log