https://github.com/babangaigole/httpd-hostname-ip
This is a simple web server that prints hostname and IP address.
https://github.com/babangaigole/httpd-hostname-ip
docker dockerfile dockerimage httpd-webserver
Last synced: 5 months ago
JSON representation
This is a simple web server that prints hostname and IP address.
- Host: GitHub
- URL: https://github.com/babangaigole/httpd-hostname-ip
- Owner: babangaigole
- Created: 2025-02-27T08:58:53.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T09:28:15.000Z (11 months ago)
- Last Synced: 2025-08-23T01:24:31.462Z (5 months ago)
- Topics: docker, dockerfile, dockerimage, httpd-webserver
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# httpd-hostname-ip
This is a simple web server that prints hostname and IP address.
## Build your own container
$ docker built -t image-name:tag .
## List image
$ docker image ls
## Create a container using existing image
$ docker container run -dit -p 80:80 --name=cusweb-host gaigoleb2/cuswebsrvhostname:v2
## List container
$ docker container ls -a
## Test container
$ curl host-ip-address:80
## Stop & remove container
$ docker container stop cusweb-host
$ docker container rm cusweb-host