How to update java version of a metasploitable docker container?

I’m trying to update the java version in my metasploitable container. The current version is:

java version “1.6.0_27”

OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~08.04.2)

OpenJDK Server VM (build 20.0-b12, mixed mode)

please tell me how to go about it?

thanks in advance :slight_smile: