I'm using containers built from external images provided by a coworker. The whole application is a testing instance of a production environment. I need to know which version of Java is running inside a container. I assume that is something like:
docker container_name java -version
But this is not a proper command. I will be grateful for your help and advice how to check it.
What you can do:
Check the dockerfile of your coworker to see which base image he is relying on. The base image tag usually describes the version.
Another approach is to docker exec containerId java -version
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With