cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setup/run oneagent in docker container

lasanga
Visitor

Im trying to setup and run dynatrace/oneagent in a docker container. Image is pulled and container is created successfully after following the steps in the documentation (https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/docker/s...). But it fails when I run it. I get the following errors which are contradicting because I pass those arguments. Can someone help please? Am I missing something?
Note: Im using a docker desktop

 

 

 

Error: Container was launched without --net parameter
Error: Dynatrace OneAgent requires parameters: --pid and --net set to 'host'.
Error: Initialization procedure failed
Error: Container was launched without --net parameter
Error: Dynatrace OneAgent requires parameters: --pid and --net set to 'host'.
Error: Initialization procedure failed
Error: Container was launched without --net parameter
Error: Dynatrace OneAgent requires parameters: --pid and --net set to 'host'.
Error: Initialization procedure failed

 

 

 

docker run -d --restart=on-failure:5 --pid=host --net=host --cap-drop ALL --cap-add CHOWN --cap-add DAC_OVERRIDE --cap-add DAC_READ_SEARCH --cap-add FOWNER --cap-add FSETID --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SETFCAP --cap-add SETGID --cap-add SETUID --cap-add SYS_ADMIN --cap-add SYS_CHROOT --cap-add SYS_PTRACE --cap-add SYS_RESOURCE --security-opt apparmor:unconfined -v /:/mnt/root -e ONEAGENT_INSTALLER_SCRIPT_URL="https://DOMAIN/api/v1/deployment/installer/agent/unix/default/latest?arch=x86" -e ONEAGENT_INSTALLER_DOWNLOAD_TOKEN=TOKEN dynatrace/oneagent APP_LOG_CONTENT_ACCESS=1

 

2 REPLIES 2

andre_vdveen
DynaMight Champion
DynaMight Champion

Hi @lasanga, maybe I'm misreading or misunderstanding, but I don't see which version of Docker you're using and if it is running on a Linux-based host - can you confirm the O/S and version is supported?

Hey @andre_vdveen, yes Im using a Linux based host. Following are the details 
Server: Docker Desktop 4.21.1 (114176)
Engine:
Version: 24.0.2
API version: 1.43 (minimum version 1.12)
Go version: go1.20.4
OS/Arch: linux/amd64
Experimental: false

Featured Posts