# What is the correct way to deploy \`Elastic Agent\` 8 via Docker?

**URL:** <https://discuss.elastic.co/t/what-is-the-correct-way-to-deploy-elastic-agent-8-via-docker/301688>\
**Category:** Beats\
**Tags:** docker, fleet, elastic-agent\
**Created:** [April 6, 2022, 1:35am UTC](https://discuss.elastic.co/t/what-is-the-correct-way-to-deploy-elastic-agent-8-via-docker/301688 "2022-04-06T01:35:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![linghengqian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/linghengqian/32/103651_2.png) [@linghengqian](https://discuss.elastic.co/u/linghengqian)\
**Post date:** [April 7, 2022, 10:54am UTC](https://discuss.elastic.co/t/what-is-the-correct-way-to-deploy-elastic-agent-8-via-docker/301688/2 "2022-04-07T10:54:47Z")

</div>

I realize the key point of the issue, this disscus I will mark as resolved, and the documentation issue can be tracked at [Add introduction to the `FLEET_SERVER_ELASTICSEARCH_CA_TRUSTED_FINGERPRINT` environment variable in documentation · Issue #311 · elastic/elastic-agent · GitHub](https://github.com/elastic/elastic-agent/issues/311) and [Add instructions to what need to `volumes` in the documentation for containerized deployments · Issue #313 · elastic/elastic-agent (github.com)](https://github.com/elastic/elastic-agent/issues/313).

---

_[View the full topic](https://discuss.elastic.co/t/what-is-the-correct-way-to-deploy-elastic-agent-8-via-docker/301688)._
