An open API service indexing awesome lists of open source software.

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

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.