Docker Community Forums

Share and learn in the Docker community.

Website with dynamic content

docker

(Lucaslamounier08) #1

Hi!
I’m looking for a way to easily show clusters with Docker.

What could I do to build a site with IP and static ports but with dynamic content? At least show “This page is located in container x”?


(Sam) #2

the code running in the container doesn’t know its a container…

but you could pass a parameter when you start the container and have the CMD operation code put that somewhere that the web app could use it.