vulhub / vulhub

Pre-Built Vulnerable Environments Based on Docker-Compose
https://vulhub.org
MIT License
17.74k stars 4.47k forks source link

CVE-2020-7961 镜像启动不了 #321

Closed pigfff closed 2 years ago

pigfff commented 2 years ago

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

phith0n commented 2 years ago

麻烦按照文档中说明的方法启动Vulhub环境:

docker-compose up -d

其他的启动方法不在Vulhub的考虑范围之内,可以自行进行研究。