A simple customized web server with apache2 for testing purposes
Find the image here already pushed to docker hub.
You can pull it from there and use it locally. Otherwise, you can build your own image with customized index.html page.
$ docker build -t sample-web-server:latest .
Run a docker container using the image:
$ docker run -d --name web -p 8080:80 sample-web-server:latest
See the container with name web
is running now:
$ docker ps
Confirm if it is working fine by visiting the url in browser: http://localhost:8080/
Also, you can use Curl in command line for the same purpose:
$ curl -k http://localhost:8080/
Run the following command to destroy the web
container:
$ docker rm -f web
Anjana AK (@AnjanaAK)