Getting Docker Container Version

Is there a way to get our docker container version? For example ESPHome docker version or VCS docker version? TIA

docker inspect gives you info about the container and the image it uses, but if the image tag used is a generic like “latest” or “stable”, it doesn’t tell you anything regarding the actual version.