# Java 11 as default in Docker images

**URL:** <https://community.jenkins.io/t/java-11-as-default-in-docker-images/315>\
**Category:** Using Jenkins\
**Created:** [August 16, 2021, 9:41pm UTC](https://community.jenkins.io/t/java-11-as-default-in-docker-images/315 "2021-08-16T21:41:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 16, 2021, 9:41pm UTC](https://community.jenkins.io/t/java-11-as-default-in-docker-images/315/1 "2021-08-16T21:41:20Z")

</div>

Jenkins 2.307 released Tuesday, August 17, 2021 with Java 11 in the default Docker images. Jenkins 2.303.1 will release Wednesday August 25, 2021 with Java 11 in the default Docker in the long term support release.

Users that continue to require Java 8 can use the `jdk8` suffix on the Docker image tag. For example, I can run Jenkins 2.307 using Java 11 with the command:

```auto
$ docker run --rm -i -t jenkins/jenkins:2.307

```

I can run Jenkins 2.307 using Java 8 with the command:

```auto
$ docker run --rm -i -t jenkins/jenkins:2.307-jdk8

```

We’ll use this topic for discussions related to the change from Java 8 to Java 11.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [August 27, 2021, 9:34pm UTC](https://community.jenkins.io/t/java-11-as-default-in-docker-images/315/2 "2021-08-27T21:34:32Z")

</div>

A post was split to a new topic: [Setting up windows cloud agents](https://community.jenkins.io/t/setting-up-windows-cloud-agents/361)

---

<div class="post-metadata">

**Author:** ![danielbeck](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/danielbeck/32/89_2.png) [@danielbeck](https://community.jenkins.io/u/danielbeck)\
**Post date:** [August 27, 2021, 9:36pm UTC](https://community.jenkins.io/t/java-11-as-default-in-docker-images/315/3 "2021-08-27T21:36:08Z")

</div>

Great to see consistency in what we publish and what we tell users to do! That the default images had Java 8 and immediately showed a message to not use Java 8 was weird 😅

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 30, 2021, 12:08pm UTC](https://community.jenkins.io/t/java-11-as-default-in-docker-images/315/4 "2021-08-30T12:08:50Z")

</div>

@dduportal has started a conversation in the Jenkins developers mailing list based on a problem related to a change in the default locale that arrived in Jenkins 2.303.1 as part of the transition from Java 8 to Java 11.

The default locale in the 2.289.3 Docker image was `C.UTF-8` while the default locale in the 2.303.1 Docker image is currently `POSIX`. The `POSIX` locale does not accept UTF-8 characters, so is not a good choice for the Jenkins Docker image.

See [https://groups.google.com/g/jenkinsci-dev/c/RfCVfNW70Sg/m/5J9rTlynAQAJ](https://groups.google.com/g/jenkinsci-dev/c/RfCVfNW70Sg/m/5J9rTlynAQAJ) for the discussion.
