# Create custom Docker image for metricbeat

**URL:** <https://discuss.elastic.co/t/create-custom-docker-image-for-metricbeat/199966>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [September 18, 2019, 10:00am UTC](https://discuss.elastic.co/t/create-custom-docker-image-for-metricbeat/199966 "2019-09-18T10:00:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjsh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kjsh/32/53453_2.png) [@kjsh](https://discuss.elastic.co/u/kjsh)\
**Post date:** [September 18, 2019, 10:00am UTC](https://discuss.elastic.co/t/create-custom-docker-image-for-metricbeat/199966/1 "2019-09-18T10:00:56Z")

</div>

Hi,

I want to add a new metricset to Metricbeat v7.3.2 and build the corresponding Docker image with my changes. After reading the documentation about "Creating a new metricset", I was able to generate the new "metricbeat" binary using `make` which works well. However, I would like to build a Docker image as well so that I can test it on the staging environment in an isolated manner. I tried building the Dockerfile present inside the `metricbeat` directory but it does not register the new metricset.

How do I go about building an updated image of Metricset?

Thanks,  
Kshitij

---

<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:** [October 16, 2019, 10:08am UTC](https://discuss.elastic.co/t/create-custom-docker-image-for-metricbeat/199966/2 "2019-10-16T10:08:04Z")

</div>

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