# Run oneagent on AWS docker swarm

**URL:** <https://community.dynatrace.com/t/run-oneagent-on-aws-docker-swarm/8951>\
**Category:** Cloud platforms\
**Tags:** installation, aws, oneagent, docker\
**Created:** [November 8, 2017, 12:02pm UTC](https://community.dynatrace.com/t/run-oneagent-on-aws-docker-swarm/8951 "2017-11-08T12:02:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![richard\_wilson](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@richard\_wilson](https://community.dynatrace.com/u/richard_wilson)\
**Post date:** [November 8, 2017, 12:02pm UTC](https://community.dynatrace.com/t/run-oneagent-on-aws-docker-swarm/8951/1 "2017-11-08T12:02:10Z")

</div>

Hi, apologies if this has already been asked, I’ve searched and can’t see anything linked to the issue I’m facing.

I’ve got 2 docker swarms that are linked to an AWS account, I’ve successfully linked the AWS account to our Dynatrace account and getting high level reporting but it says I need to install the OneAgent to get more info about each EC2 instance. The EC2 instances are created as managers and nodes by docker swarm so I don’t have access to the AMI’s that they use. I can modify the cloudformation and include the install commands via the UserData command, but this fails.

Trying to install it manually via SSH I get the following message:

Error: Dynatrace OneAgent cannot be installed inside a docker container, setup won’t continue.

But it isn’t inside a docker container, it’s the host, I’m guessing that because the OS is Alpine, the OneAgent just assumes it’s a container and fails there.

Any suggestions for how I can get OneAgent installed on EC2 instances deployed via docker swarm?

Thanks in advance,

Let me know if you need any more information.

Rich

---

_[View the full topic](https://community.dynatrace.com/t/run-oneagent-on-aws-docker-swarm/8951)._
