Does passing USB comms stick to a docker container need Privileged mode ?


Recommended Posts

I have a home assistant container and I am passing through a usb device that talks to a current cost envir unit.

 

I added a device like such :

/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0:/dev/currentcost

 

But this only works if the container is set to Privileged mode.  Is this by design ?

 

I was on 6.12.4 and this 'hack' I fond on the support forum worked :

Add this to the post arguments - && docker exec -u root homeassistant sh -c "chmod a+rwx /dev/currentcost"

 

But now I upgreaded to 6.12.6, this again needs to be Privileged mode as this hack no longer works.

Link to comment

11 days since I posted this, and no support for it.

I would think this was a simple answer that many people would know.

I dont know if this is a stupid post and hence met with disdain by anyone reading it - or there is just little support here in this forum.

I guess no point in posting again to move this to the top - as no answers in 11 days, then I assume this is dead.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.