ISO from pentesterlab.com, and use unquashfs to extract filesystem, and import as a docker image
sudo apt-get install squashfs-tools
wget -O iso https://pentesterlab.com/exercises/web_for_pentester/iso
mkdir rootfs unquashfs
sudo mount -o loop iso rootfs
sudo unsquashfs -f -d unsquashfs/ rootfs/live/filesystem.squashfs
sudo tar -C unsquashfs -c . | sudo docker import - developercyrus/pentesterlab
https://hub.docker.com/r/developercyrus/pentesterlabsudo docker pull developercyrus/pentesterlabsudo docker run -d -p 127.0.0.1:80:80 developercyrus/pentesterlab$ curl -v -I http://localhost:80
* Trying 127.0.0.1:80...
* Connected to localhost (127.0.0.1) port 80 (#0)
> HEAD / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Fri, 22 Apr 2022 17:52:49 GMT
Date: Fri, 22 Apr 2022 17:52:49 GMT
< Server: Apache/2.2.16 (Debian)
Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.3.3-7+squeeze15
X-Powered-By: PHP/5.3.3-7+squeeze15
< X-XSS-Protection: 0
X-XSS-Protection: 0
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Content-Type: text/html
Content-Type: text/html
<
* Connection #0 to host localhost left intact
$