Despite what a lot of conference talks might lead you to think, far from every Java developer uses Docker on a daily basis, if at all. However, chances are high they work with a couple of different Java versions. To handle that requirement, the easy approach is to set the JAVA_HOME environment variable when necessary. But you have to remember the path to the required Java version every time you need to change.