<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot change permissions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx - Docker oneagent deploy issue in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170867#M736</link>
    <description>&lt;P&gt;It was strange but docker permission gave me the problem. I removed docker from my system and reinstalled again and that annoying problem asking for sudo to run docker can be solved doing that:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;sudo usermod -a -G docker $USER&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I don't know if first persistent running oneagent container was doing the problem.&lt;/P&gt;&lt;P&gt;Here my steps:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;stopped oneagent container&lt;/LI&gt;&lt;LI&gt;I wiped out docker&lt;/LI&gt;&lt;LI&gt;reinstalled docker again&lt;/LI&gt;&lt;LI&gt;Remove all images and containers&lt;/LI&gt;&lt;LI&gt;I do not add my user to docker group yet&lt;/LI&gt;&lt;LI&gt;I ran docker oneagent install just using sudo&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now I can have it running ok.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Aug 2021 02:54:20 GMT</pubDate>
    <dc:creator>Alan_Aguinaga</dc:creator>
    <dc:date>2021-08-17T02:54:20Z</dc:date>
    <item>
      <title>Cannot change permissions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx - Docker oneagent deploy issue</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170825#M734</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My "docker run" command is formatted as below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;docker run -d --restart=unless-stopped --privileged=true --pid=host --net host --name=oneagent&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-v /:/mnt/root -e ONEAGENT_INSTALLER_SCRIPT_URL=&lt;/SPAN&gt;&lt;SPAN&gt;"https://.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&amp;amp;flavor=default&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt; -e ONEAGENT_INSTALLER_DOWNLOAD_TOKEN=&amp;lt;mytoken&amp;gt; dynatrace/oneagent oneagent APP_LOG_CONTENT_ACCESS=1&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;output is:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Started agent deployment as a container, PID 978125.&lt;BR /&gt;Downloading agent to /tmp/Dynatrace-OneAgent-Linux.sh via&amp;nbsp;https://.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&amp;amp;flavor=default&lt;BR /&gt;Download complete&lt;BR /&gt;Warning: Cannot change permissions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx.&lt;BR /&gt;Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent directory.&lt;BR /&gt;mv: cannot move '/tmp/Dynatrace-OneAgent-Linux.sh' to '/mnt/host_root/opt/dynatrace/oneagent/Dynatrace-OneAgent-Linux.sh': No such file or directory&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why am I getting this permission error? I supposed docker daemon runs as a root privileges.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran other older images too and got same problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help, please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:38:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170825#M734</guid>
      <dc:creator>Alan_Aguinaga</dc:creator>
      <dc:date>2023-03-27T07:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot change permissions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx - Docker oneagent deploy issue</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170826#M735</link>
      <description>&lt;P&gt;Hi Alan!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the Dynatrace Community! I hope you'll get help from the Dynatrace experts soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just wanted to let you know that I removed the environment ID from your post, following the &lt;A href="https://community.dynatrace.com/t5/Community-user-guide/Community-guidelines/ba-p/159816" target="_self"&gt;Community guidelines&amp;nbsp;&lt;/A&gt;not to post sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Karolina Linda&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Dynatrace Senior Community Manager&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 07:05:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170826#M735</guid>
      <dc:creator>Karolina_Linda</dc:creator>
      <dc:date>2021-08-16T07:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot change permissions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx - Docker oneagent deploy issue</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170867#M736</link>
      <description>&lt;P&gt;It was strange but docker permission gave me the problem. I removed docker from my system and reinstalled again and that annoying problem asking for sudo to run docker can be solved doing that:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;sudo usermod -a -G docker $USER&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I don't know if first persistent running oneagent container was doing the problem.&lt;/P&gt;&lt;P&gt;Here my steps:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;stopped oneagent container&lt;/LI&gt;&lt;LI&gt;I wiped out docker&lt;/LI&gt;&lt;LI&gt;reinstalled docker again&lt;/LI&gt;&lt;LI&gt;Remove all images and containers&lt;/LI&gt;&lt;LI&gt;I do not add my user to docker group yet&lt;/LI&gt;&lt;LI&gt;I ran docker oneagent install just using sudo&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now I can have it running ok.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 02:54:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-change-permissions-of-mnt-host-root-opt-directory-to-u/m-p/170867#M736</guid>
      <dc:creator>Alan_Aguinaga</dc:creator>
      <dc:date>2021-08-17T02:54:20Z</dc:date>
    </item>
  </channel>
</rss>

