I have an application that uses JDK 11 and this application also uses a docker library (Testcontainer) for testing and I therefore need to use the Machine type executor.
The default ubuntu image for machine type runs on JDK8.
Is there already a new Ubuntu image with JDK 11 installed or how can I achieve this?
I would suggest using the new ubuntu-2004:202008-01 machine executor image, already available for early preview. It comes with OpenJDK 11 as the default version.
However, I strongly advise you to read this post before deciding to use that new image.
Alternatively, you could keep using the ubuntu-1604:202007-01 machine image and upgrade OpenJDK to version 11, as follows: