https://github.com/babangaigole/httpd-hostname
This is a simple web server that prints hostname.
https://github.com/babangaigole/httpd-hostname
docker dockerfile dockerimage httpd-webserver
Last synced: 2 months ago
JSON representation
This is a simple web server that prints hostname.
- Host: GitHub
- URL: https://github.com/babangaigole/httpd-hostname
- Owner: babangaigole
- Created: 2025-02-27T08:46:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T09:30:05.000Z (about 1 year ago)
- Last Synced: 2025-07-07T22:08:54.411Z (9 months ago)
- Topics: docker, dockerfile, dockerimage, httpd-webserver
- Language: Dockerfile
- Homepage:
- Size: 1.95 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:v1
## 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