udev permissions in Docker

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am trying to run ADB in a docker container, ADB normally works fine and I can see and talk to my connected devices. When i execute ADB devices from docker, I get a no permission issue even running as root which is already a member of the plugdev group.



I can't see any obvious user in the list from cut -d: -f1 /etc/passwd looks like it runs docker, so my assumption is it runs as whoever is logged in, it also happens if i sudo it.



How do i determine which user needs adding to the plugdev group?



enter image description here







share|improve this question
























    up vote
    0
    down vote

    favorite












    I am trying to run ADB in a docker container, ADB normally works fine and I can see and talk to my connected devices. When i execute ADB devices from docker, I get a no permission issue even running as root which is already a member of the plugdev group.



    I can't see any obvious user in the list from cut -d: -f1 /etc/passwd looks like it runs docker, so my assumption is it runs as whoever is logged in, it also happens if i sudo it.



    How do i determine which user needs adding to the plugdev group?



    enter image description here







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to run ADB in a docker container, ADB normally works fine and I can see and talk to my connected devices. When i execute ADB devices from docker, I get a no permission issue even running as root which is already a member of the plugdev group.



      I can't see any obvious user in the list from cut -d: -f1 /etc/passwd looks like it runs docker, so my assumption is it runs as whoever is logged in, it also happens if i sudo it.



      How do i determine which user needs adding to the plugdev group?



      enter image description here







      share|improve this question












      I am trying to run ADB in a docker container, ADB normally works fine and I can see and talk to my connected devices. When i execute ADB devices from docker, I get a no permission issue even running as root which is already a member of the plugdev group.



      I can't see any obvious user in the list from cut -d: -f1 /etc/passwd looks like it runs docker, so my assumption is it runs as whoever is logged in, it also happens if i sudo it.



      How do i determine which user needs adding to the plugdev group?



      enter image description here









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 27 at 9:46









      iainpb

      10315




      10315

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426899%2fudev-permissions-in-docker%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426899%2fudev-permissions-in-docker%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)