nomad icon indicating copy to clipboard operation
nomad copied to clipboard

show the docker image:tag on the task page of the Nomad GUI

Open shantanugadgil opened this issue 4 years ago • 3 comments
trafficstars

Proposal

In the Nomad GUI, it would be good to see the Docker image:tag for the task. This would give an immediate answer to someone without the cmdline access to figure out which version of the service is running.

Also, for the other task drivers, it could show the equivalent relevant information, like command and args (for raw_exec), etc.

Use-cases

Related to https://github.com/hashicorp/nomad/issues/11009 this becomes even more important as the job definition which can be seen in the GUI now has only a variable, and not the actual value stored anywhere.

Attempted Solutions

I tried nomad inspect, but couldn't figure out any commands which showed the image:tag of the running Docker task.

shantanugadgil avatar Aug 10 '21 09:08 shantanugadgil

Hi @shantanugadgil and thanks for raising this request. It could certainly be a useful enhancement. Off the top of my head I would be worried about doing this in a driver agnostic manner; although that is part of the implementation research required.

jrasell avatar Aug 10 '21 10:08 jrasell

@jrasell my current requirement is Docker, though I just mentioned raw_exec as I quite frequently use that as well, though I haven't ever wondered or asked myself "what raw_exec command is this running?" :smile:

shantanugadgil avatar Aug 10 '21 10:08 shantanugadgil

Any update/ideas about showing the actual Docker image in use? This is (and has been) a sorely missed feature.

Side hack: we have added a custom ENV variable in the Docker build which is embedded in the build and it is echoed during startup of the container.

We can atleast check the "current" docker image being used by looking in the logs!

shantanugadgil avatar Oct 21 '24 12:10 shantanugadgil