6. It will help you to ...
● run your environment everywhere
● try out infrastructure changes easier
● deploy new releases faster
● run PHP without installing it locally!
19. Linux Containers ...
● run in their own Kernel namespace
● are standalone processes
● only see processes inside them
● cannot see outside processes
● share the kernel instance
● can have their own filesystem
● can be isolated using CGroups
35. 1. Create a PHP file
<?php
echo "Hello from PHP";
36. 2. Create a Dockerfile
FROM php
ADD index.php /var/www
EXPOSE 8080
WORKDIR /var/www
Every line
becomes a layer
ENTRYPOINT ["php", "-S", "0.0.0.0:8080"]