Build a docker container with Apache

To create a docker container with Apache, create a Dockerfile

Paste following content into the Dockerfile

Now build an image with command

Once image is build, you can see it using docker images command

To start a container with the image, run

See docker build […]

Read More…

Docker Build

Build a docker container with Apache docker build command is used to create a docker image from Dockerfile. To create an image, first lets create a working directory and change to the directory.

Create a file with name Dockerfile

Put following content in it

Now build the docker image with

This […]

Read More…