https://github.com/visaltyagi/docker-assignment-5
How to Replace the Apache Default Web Page With Sample HTML File Inside Container - Docker Assignment 5
https://github.com/visaltyagi/docker-assignment-5
apache2 container docker dockerfiles dockerimages html htmlfile htmlwebsite
Last synced: about 1 year ago
JSON representation
How to Replace the Apache Default Web Page With Sample HTML File Inside Container - Docker Assignment 5
- Host: GitHub
- URL: https://github.com/visaltyagi/docker-assignment-5
- Owner: visaltyagi
- Created: 2024-04-27T11:46:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T10:38:39.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:45:18.727Z (over 1 year ago)
- Topics: apache2, container, docker, dockerfiles, dockerimages, html, htmlfile, htmlwebsite
- Language: Dockerfile
- Homepage:
- Size: 301 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.