# Getting error while setting up OneAgent in a docker container

**URL:** <https://community.dynatrace.com/t/getting-error-while-setting-up-oneagent-in-a-docker-container/19446>\
**Category:** Container platforms\
**Tags:** installation, oneagent, docker\
**Created:** [May 29, 2020, 9:31am UTC](https://community.dynatrace.com/t/getting-error-while-setting-up-oneagent-in-a-docker-container/19446 "2020-05-29T09:31:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![himanshu\_khanna](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@himanshu\_khanna](https://community.dynatrace.com/u/himanshu_khanna)\
**Post date:** [May 29, 2020, 9:31am UTC](https://community.dynatrace.com/t/getting-error-while-setting-up-oneagent-in-a-docker-container/19446/1 "2020-05-29T09:31:12Z")

</div>

Hi, I’m new to docker and Dynatrace and doing a PoC for my organization. I’ve followed the documentation and ram below command to run OneAgent in a container. However, getting error. Kindly help.

> docker run -d --restart=unless-stopped --privileged=true --pid=host --net=host --ipc=host -v /:/mnt/root -e ONEAGENT\_INSTALLER\_SCRIPT\_URL=“https://\*\*\*\*\*\*\*\*\*\*.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x64” -e ONEAGENT\_INSTALLER\_DOWNLOAD\_TOKEN=“\*\*\*\*\*\*\*\*\*\*” dynatrace/oneagent --set-app-log-content-access=true

Error:

> 09:27:51 Download complete

> 09:27:52 Downloaded version: 1.191.239.20200526-145639

> 09:27:52 Verifying agent installer signature

> 09:27:56 Verification successful

> 09:27:56 Deploying to: /mnt/host\_root

> 09:27:56 Starting installer…

> 09:28:03 Checking root privileges…

> 09:28:03 OK

> 09:28:03 Installation started, version 1.191.239.20200526-145639, build date: 26.05.2020, PID 30236.

> 09:28:03 Detected platform: LINUX arch: X86

> 09:28:03 Detected bitness: 64

> 09:28:03 Checking free space in /opt/dynatrace/oneagent

> 09:28:04 Extracting…

> 09:28:06 Unpacking. This may take a few minutes…

> 09:28:09 Error: XZ compressed archive is corrupted or memory allocation failed. Installation aborted.

---

<div class="post-metadata">

**Author:** ![mreider](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mreider/32/14971_2.png) [@mreider](https://community.dynatrace.com/u/mreider)\
**Post date:** [June 4, 2020, 2:14pm UTC](https://community.dynatrace.com/t/getting-error-while-setting-up-oneagent-in-a-docker-container/19446/2 "2020-06-04T14:14:06Z")

</div>

Hi there. Curious if you are running Docker for Mac? If so, I do see another, related thread, which could help you. The thread concludes that Dynatrace oneagent installation expects GNU coreuitils, which are not on Mac.

See:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3D5b42e271-a8c0-4ec0-897d-c0cabfd9e52b&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**
