# APM JAVA AGENT Rancher

**URL:** <https://discuss.elastic.co/t/apm-java-agent-rancher/162671>\
**Category:** APM\
**Created:** [January 2, 2019, 2:39pm UTC](https://discuss.elastic.co/t/apm-java-agent-rancher/162671 "2019-01-02T14:39:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [January 2, 2019, 2:39pm UTC](https://discuss.elastic.co/t/apm-java-agent-rancher/162671/1 "2019-01-02T14:39:48Z")

</div>

Dear All,

We want to use the APM feature but we are a bit stuck with configuring it.

We are using Rancher with docker containers. I've managed to install the APM server using the available image but how do i need to install the APM AGENT. We have the .JAR, do we need to add this jar in a different user stack or..

 ![06](https://us1.discourse-cdn.com/elastic/original/3X/c/d/cda04a1a78afce70a53f5d1e0093fedc8e62ca8f.png) ?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [January 2, 2019, 3:34pm UTC](https://discuss.elastic.co/t/apm-java-agent-rancher/162671/2 "2019-01-02T15:34:32Z")

</div>

Hi and thanks for trying it out.  
You need to copy the jar into your docker image and add the `javaagent` flag to the command line with the proper path to it. See [here](https://www.elastic.co/guide/en/apm/agent/java/current/application-server-setup.html) for more details.  
I hope this makes sense.

---

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [January 3, 2019, 7:23am UTC](https://discuss.elastic.co/t/apm-java-agent-rancher/162671/3 "2019-01-03T07:23:52Z")

</div>

Thanks, our developer will work on that and provide me a image where this is included.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 24, 2019, 3:23am UTC](https://discuss.elastic.co/t/apm-java-agent-rancher/162671/4 "2019-01-24T03:23:57Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
