Articles → DOCKER → Create A Container With The Ubuntu Image In Docker

Create A Container With The Ubuntu Image In Docker






Prerequisite





Create A Container




sudo -i
docker run --name c2 -it -d -p 84:80 ubuntu





Install Apache In The Ubuntu Container




docker exec -it c2 bash
apt update
apt install apache2






service apache2 status


Picture showing the status of the apache server
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, March 22, 2023
 
Updated On  -  Thursday, February 8, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250