Sitemap

Docker — Assignment 4

Jul 11, 2023

--

Press enter or click to view image in full size
Photo by Rubaitul Azad on Unsplash
  1. Create a Dockerfile with the following specs:
    ● Ubuntu container
    ● Apache2 installed
    ● Apache2 should automatically run once the container starts

Create a Dockerfile with the following specs:
● Ubuntu container
● Apache2 installed
● Apache2 should automatically run once the container starts

create a docker file

Get aravind’s stories in your inbox

Join Medium for free to get updates from this writer.

sudo nano Dockerfile

(ENTRYPOINT It set the priority as high)

FROM ubuntu
RUN apt update
RUN apt install apache2 -y
ENTRYPOINT apachectl -D FOREGROUND

(ENTRYPOINT It set the priority as high)

Press enter or click to view image in full size
Photo by Courtney Hedger on Unsplash

--

--