This example is for a container named demo01pg. It shows that it has been running for 2 hours, 30 minutes and 52 seconds. If i use {{.RunningFor}} it shows something like 2 hours ago.
Hmm, though the delta between now and a point in time when a container was creation is not necessarily its uptime, is it?
Containers can be created without beeing started. Containers can be stopped without beeing removed. Containers can restart on failure or after a system restart…
To get the actual uptime, you might want to replace ‘{{ .Created }}’ with ‘{{ .State.StartedAt }}’ in your command,