RPi-RF try running as root error, adding user doesn't help

Getting the same issue as this:

but adding pi to gpio group or any other adduser command does not work. I’m running HASS in a docker container and HASS gives me the normal “try running as root!” error. What’s going on here?

Could I run this as a shell file and set to autostart at boot?

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/switch/rpi_rf.py”, line 73, in setup_platform
File “/usr/local/lib/python3.6/site-packages/rpi_rf/rpi_rf.py”, line 77, in enable_tx
GPIO.setup(self.gpio, GPIO.OUT)
RuntimeError: No access to /dev/mem. Try running as root!

That changes everything. The post you referred to was running HA in a virtual environment. I doubt if they have the same solution. I don’t know how, but you will have to look up how to expose gpio to your docker container.

Hi, I have exactly the same problem, did you solve?