How to Make Your Own CentOS Apache Webserver Docker Image | Docker Daemon Log Focused



How to Make Your Own CentOS Apache Webserver Docker Image | Docker Daemon Log Focused

How to Make Your Own CentOS Apache Webserver Docker Image | Docker Daemon Log Focused

#docker #dockertraining #dockertutorial #dockerhub #dockerdaemonlog
Learning Outcomes
• Basic Dockerfile creation .
• Basic HTML Code Creation .
• Understanding Dockerfile .
• Creation of custom Apache webserver for multiple use .
• Custom Docker Image creation from base centos latest image from docker hub .
• Understanding docker daemon logs for Troubleshooting.
• Realtime Error solving techniques.
what is docker image?
A Docker image is a file used to execute code in a Docker container. Docker images act as a set of instructions to build a Docker container, like a template. Docker images also act as the starting point when using Docker. An image is comparable to a snapshot in virtual machine (VM) environments.
what is docker file?
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession. This page describes the commands you can use in a Dockerfile .
What is a Docker container file?
A Docker container is a virtualized runtime environment used in application development. It is used to create, run and deploy applications that are isolated from the underlying hardware. A Docker container can use one machine, share its kernel and virtualize the OS to run more isolated processes.
############# Docker File Codes #############
FROM centos: latest
MAINTAINER: Learn Computer Technology
RUN sed -i ‘s/mirrorlist/#mirrorlist/g’ /etc/yum.repos.d/CentOS-Linux-* &&
sed -i ‘s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g’ /etc/yum.repos.d/CentOS-Linux-*
RUN yum upgrade -y
COPY index.html /var/www/html
RUN yum install httpd httpd-tools -y
CMD [“/usr/sbin/httpd”,”-D”,”FOREGROUND”]
EXPOSE 80
##########################

Comments are closed.