Sign inSign up

marcomsousa/hostname

By marcomsousa

Updated over 6 years ago

This is a minimalist flask app that returns the container ID via HTTP GET.

Image
1

1.1K

marcomsousa/hostname repository overview

Simple image that returns the container ID on http get

This is a minimalist flask app that returns the container ID via HTTP GET.

Based on Alpine Linux, so the image is quite small.

Run the Docker container using the command shown below.

$ docker run -d --name hostname -p 5000:5000 marcomsousa/hostname

Run in a Docker Swarm Cluster with replicas

$ docker service create \
--name hostname \
--publish 5000:5000 \
--replicas 5 \
marcomsousa/hostname

Tag summary

Content type

Image

Digest

Size

39 MB

Last updated

over 6 years ago

docker pull marcomsousa/hostname