# Docker cloud agent - Use custom image with Launch attached method

**URL:** <https://community.jenkins.io/t/docker-cloud-agent-use-custom-image-with-launch-attached-method/17138>\
**Category:** Using Jenkins\
**Created:** [July 16, 2024, 3:41pm UTC](https://community.jenkins.io/t/docker-cloud-agent-use-custom-image-with-launch-attached-method/17138 "2024-07-16T15:41:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 17, 2024, 4:45pm UTC](https://community.jenkins.io/t/docker-cloud-agent-use-custom-image-with-launch-attached-method/17138/4 "2024-07-17T16:45:32Z")

</div>

> [@Padmahas](#):
>
> What are my options now to use “jenkins/agent” and still get Java 8 working?

Extend the Jenkins agent definition by installing Java 8 in a separate directory. Define a Jenkins tool for Java 8 and have the job definition reference that tool. Refer a [previous answer](https://community.jenkins.io/t/jenkins-upgrade-and-using-2-different-java-versions/1571/4) for more details and refer to this video by Darin Pope

[![](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/6/62e9c3af55b8ae3ee2a067939731409156e028db.jpeg "How to Configure Maven in Jenkins") ](https://www.youtube.com/watch?v=V-VFrYF_Z1Y)

---

_[View the full topic](https://community.jenkins.io/t/docker-cloud-agent-use-custom-image-with-launch-attached-method/17138)._
