Containerization is the method of packaging your applications for virtualization. The images created allow you to easily execute your containers in a variety of manners. We can install Docker on our Cloud9 instance:
sudo yum install -y docker
sudo service docker start
# The below command will tell us if the docker daemon is running
docker info
Let's look at a sample Dockerfile at https://raw.githubusercontent.com/Docker-example/alpine-wordpress/master/Dockerfile:
# Installing dependencies
RUN apk add --no-cache --virtual .build-deps unzip
RUN apk add --no-cache apache2 php7 php7-apache2 php7-openssl php7-xml php7-pdo php7-mcrypt php7-session php7-mysqli php7-zlib su-exec
RUN mkdir -p /run/apache2 /run/httpd
# Work path
WORKDIR /scripts
# Download & install wordpress
ADD https://wordpress.org/wordpress-${VERSION_WORDPRESS}.zip ./
RUN unzip -q wordpress-...