This is a minimalist flask app that returns the container ID via HTTP GET.
1.1K
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
Content type
Image
Digest
Size
39 MB
Last updated
over 6 years ago
docker pull marcomsousa/hostname