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”?
Share and learn in the Docker community.
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”?
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.