localhost:~# docker run -it -p 8888:8888 --device /dev/gpiochip0 zinen2/alpine-pigpiod:latest
Unable to find image 'zinen2/alpine-pigpiod:latest' locally
latest: Pulling from zinen2/alpine-pigpiod
e14425cf8fb9: Pull complete
aa5bf1b6f601: Pull complete
97ec19dce31d: Pull complete
4f4fb700ef54: Pull complete
62689cf4fe6a: Pull complete
Digest: sha256:9a73f9843e499bbf3d6d6fd3ef0ab661761349d650498dd4df2f01b9499ec7af
Status: Downloaded newer image for zinen2/alpine-pigpiod:latest
Checking who is listening/bound to port 8888 ...
...OK, no process is listing/bound to port 8888
Starting daemon pigpiod ...
2023-11-26 15:00:42 initCheckPermitted:
+---------------------------------------------------------+
|Sorry, you don't have permission to run this program. |
|Try running as root, e.g. precede the command with sudo. |
+---------------------------------------------------------+
Can't initialise pigpio library
... daemon stopped unexpectedly.
netstat -tlep | grep 8888
sleeping for 20 sec - we hope that this releases the bound TCP port 8888
end of sleep
netstat -tlep | grep 8888
... start.sh terminated
localhost:~#
localhost:~# docker run -it -p 8888:8888 --privileged zinen2/alpine-pigpiod
Unable to find image 'zinen2/alpine-pigpiod:latest' locally
latest: Pulling from zinen2/alpine-pigpiod
e14425cf8fb9: Pull complete
aa5bf1b6f601: Pull complete
97ec19dce31d: Pull complete
4f4fb700ef54: Pull complete
62689cf4fe6a: Pull complete
Digest: sha256:9a73f9843e499bbf3d6d6fd3ef0ab661761349d650498dd4df2f01b9499ec7af
Status: Downloaded newer image for zinen2/alpine-pigpiod:latest
Checking who is listening/bound to port 8888 ...
...OK, no process is listing/bound to port 8888
Starting daemon pigpiod ...
2023-11-26 15:05:43 initPeripherals: mmap gpio failed (Invalid argument)
Can't initialise pigpio library
... daemon stopped unexpectedly.
netstat -tlep | grep 8888
sleeping for 20 sec - we hope that this releases the bound TCP port 8888
end of sleep
netstat -tlep | grep 8888
... start.sh terminated
localhost:~#