manniru
6/16/2018 - 10:19 AM

Docker PHP

Docker PHP

docker build -t manniru/php1 . docker run -d --name php1 manniru/php1

docker run -p 80:80 --name php1 -it manniru/php1 /bin/bash

docker build -t manniru/php1 . docker run -d -p 8080:80 manniru/php1

open http://192.168.99.100:8080/

FROM php
RUN echo "<?php echo 'Hello World';" > /tmp/index.php
CMD ["php", "-S", "0.0.0.0:80", "-t", "/tmp"]