GitHunt
VI

visaltyagi/Docker-Assignment-5

How to Replace the Apache Default Web Page With Sample HTML File Inside Container - Docker Assignment 5

Docker-Assignment-5

Docker-Assignment-5

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/replace-the-apache-default-web-page-with-sample-html-file-inside-container-docker-assignment-5-9a835b8fb20c

Step 1: Create the EC2 Instance & Install Docker on this instance.

Step 2: Create an index.html file.

Step 3: Add index.html file in the Dockerfile using the ADD command.

Step 4: Create an image using the Dockerfile.

Step 5: Create a container & map this container on port 89. The container will be successfully created if the Dockerfile is correct.

Step 6: Open the Public IP Address with Port no 89, your index.html file content will be shown on the web page in the browser.

Languages

Dockerfile56.3%HTML43.7%

Contributors

Created April 27, 2024
Updated January 28, 2025