Is there any way to know the current version information (e.g. V21) at runtime or during Docker build?
Unfortunately, no. The version can actually change between builds (and even while a VM is running).
Using your current git sha is a good alternative: Git commit sha of current build - #2 by michael
Thanks for reply!