# Elastic-agent in docker - host metadata

**URL:** <https://discuss.elastic.co/t/elastic-agent-in-docker-host-metadata/303000>\
**Category:** Beats\
**Tags:** docker, filebeat, metricbeat\
**Created:** [April 22, 2022, 9:04am UTC](https://discuss.elastic.co/t/elastic-agent-in-docker-host-metadata/303000 "2022-04-22T09:04:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkf1](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mkf1](https://discuss.elastic.co/u/mkf1)\
**Post date:** [April 22, 2022, 9:04am UTC](https://discuss.elastic.co/t/elastic-agent-in-docker-host-metadata/303000/1 "2022-04-22T09:04:21Z")

</div>

Hi,

When using elastic-agent in Docker is it possible to override/manually set the host metadata (host.ip, host.mac etc..) to the actual host? When elastic-agent is in a container it select the container ip and container mac as the host metadata.

Is there any parameter that could be used to specify the host.ip at container startup?

---

<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:** [May 20, 2022, 11:04am UTC](https://discuss.elastic.co/t/elastic-agent-in-docker-host-metadata/303000/2 "2022-05-20T11:04:52Z")

</div>

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