vadym-vorobel / hostname-docker

Webserver printing the current hostname (i.e. the docker container ID)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hostname-docker

Small binary to test networking with docker.

Fork of the adongy/hostname-docker but with the ability to pass PORT as an environment variable.

Usage example:

docker run -e "PORT=3001" -p 3001:3001 vadymvorobel/hostname-docker

About

Webserver printing the current hostname (i.e. the docker container ID)

License:MIT License


Languages

Language:Go 75.2%Language:Dockerfile 24.8%