Objective
Following this tutorial you will be able to create a LAMP environment using the Docker technology.
Requirements
- Root permissions
- Basic knowledge of Docker
Conventions
- # – requires given linux commands to be executed with root privileges either
directly as a root user or by use ofsudo
command - $ – requires given linux commands to be executed as a regular non-privileged user
Other Versions of this Tutorial
Introduction
Docker is an open source project aimed at providing software inside containers
. You can think of a container as a sort of “package”, an isolated environment which shares the kernel with the host machine and contains everything the application needs. All containers are built using images
(the central images repository for them being Dockerhub).
In this tutorial, we will see how to create a LAMP stack based on dockerized components: following the “one service per container” philosophy, we will assemble the environment using docker-compose
, a tool to orchestrate container compositions.