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
09:27:51 Download complete
09:27:52 Downloaded version: 184.108.40.20600526-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 Installation started, version 220.127.116.1100526-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:06 Unpacking. This may take a few minutes...
09:28:09 Error: XZ compressed archive is corrupted or memory allocation failed. Installation aborted.
Solved! Go to Solution.
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.