GitHunt
VI

visaltyagi/Docker-Assignment-4

How to Create a Dockerfile Which Installs Apache2 Automatically After Running the Container— Docker Assignment 4

Docker-Assignment-4

Docker-Assignment-4

In this assignment, we have installed Apache2 on the EC2 instance using the Dockerfile

For a complete solution, check this link: https://medium.com/devops-guides/create-a-docker-file-which-installs-apache2-automatically-after-running-the-container-a06594be152c

Step 1: Create the EC2 Instance.

Step 2: Create a Dockerfile

Step 3: Create a Docker Image

Step 4: Create a new container & apache2 is automatically installed now.

Step 5: Click on "Open Address" in the "Instance" section. A default apache2 web page will be opened.

Languages

Dockerfile100.0%

Contributors

Created April 27, 2024
Updated January 28, 2025