/hostname-docker

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

Primary LanguageGoMIT LicenseMIT

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