Step 1 - Install Apache into running container
docker commit command creates an image from container's changes.
Start an Debian container:
docker run -it debian. It will pull
debian image to
your local system if it does not exist already.
After pulling image, it will start container and open a shell into running container.
We'll install Apache into running container.
apt-get update && apt-get install apache2 -y