Hi guys I need some help. I’m trying to install OneAgent as a docker container on my physical host (ubuntu 20.4) and it gets pretty difficult to get it done.
My “docker run” command is formatted as below:
docker run -d --restart=unless-stopped --privileged=true --pid=host --net host --name=oneagent -v /:/mnt/root -e ONEAGENT_INSTALLER_SCRIPT_URL=“https://.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default” -e ONEAGENT_INSTALLER_DOWNLOAD_TOKEN=<mytoken> dynatrace/oneagent oneagent APP_LOG_CONTENT_ACCESS=1output is: Started agent deployment as a container, PID 978125.
Downloading agent to /tmp/Dynatrace-OneAgent-Linux.sh via https://.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default
Download complete
Warning: Cannot change permissions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx.
Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent directory.
mv: cannot move ‘/tmp/Dynatrace-OneAgent-Linux.sh’ to ‘/mnt/host_root/opt/dynatrace/oneagent/Dynatrace-OneAgent-Linux.sh’: No such file or directory
Why am I getting this permission error? I supposed docker daemon runs as a root privileges.
I ran other older images too and got same problem.
I do it on a virtual machine and get no error, but it does not solve my problem. I don’t know how to solve that.
Any help, please?