# Install and run PiGPIOd daemon on Docker image

**URL:** <https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690>\
**Category:** General\
**Tags:** docker\
**Created:** [2 February 2022 20:32 UTC](https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690 "2022-02-02T20:32:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peerke](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Peerke](https://discourse.nodered.org/u/Peerke)\
**Post date:** [2 February 2022 20:32 UTC](https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690/1 "2022-02-02T20:32:20Z")

</div>

I am running Node-Red in a Docker image on a Pi within home assistant. Trying to get the GPIO to work and found some documentation  
[https://nodered.org/docs/getting-started/docker#quick-migration-steps-to-node-red-node-pi-gpiod](https://nodered.org/docs/getting-started/docker#quick-migration-steps-to-node-red-node-pi-gpiod)  
where i need to convert from the "node-red-node-pi-gpio" to "node-red-node-pi-gpiod".  
(node-red-node-pi-gpio isnt working anyway, with a "nrgpio python command not running" error message.

Read some information on the new PiGPIOd daemon that is part of Raspbian, since i am runnig the node-red image (based on Alpine Linux) i wonderd how to get the deamon installed and running so i dont need another container just for the deamon (and expose port 8888)

The install stops at "make" with command not found

I read this:

> <https://stackoverflow.com/questions/62163126/how-to-handle-make-missing-from-alpine-docker-image>

and these 2 would make sense:

- build your binary outside ur container and copy only the shippable binary to ur alpine container
- build your binary in a normal golang container then copy the binary to a small shippable alpine container

I am new to linux, could this be done on my WSL on windows? or would i need to create a docker container with linux and install it there?  
And then, how do i recognise the binary for the piGPIOd deamon?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 February 2022 21:30 UTC](https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690/2 "2022-02-02T21:30:06Z")

</div>

My general recommendation is to install and run the gpiod daemon process on the actual host hardware - as that is where the actual pins are located :-)... and then open up the necessary ports via docker to allow the container to communicate to the daemon.

---

<div class="post-metadata">

**Author:** ![Peerke](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Peerke](https://discourse.nodered.org/u/Peerke)\
**Post date:** [3 February 2022 09:10 UTC](https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690/3 "2022-02-03T09:10:29Z")

</div>

thanks for the reply. I think this is not doable as my OS is the HomeAssistant one and is maintained by them. I dont control any updates. Will investigate further to see what i can do.

Also GPIO for the hardware is removed from the Core components in HA and needs to be transfer to a container (see some posts that others take over the development as a custom integration ) maybe i can use that if it does pwm control. Most solutions are going to use a container to get to the gpio's as that will be the only option.

I could run Debian as the OS, because i am not a Linux expert i dont want that because all updates will be on me and then, by mistake, i might kill the application on top

I want to use it to control a fan when the cpu gets above x, so the fan doesn't spin all the time  
Seems a tough one to get working without additional hardware

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 February 2022 09:43 UTC](https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690/4 "2022-02-03T09:43:05Z")

</div>

Ah the joy of HA.. yes you'll probably do better asking over on their forum, and yes you will need some extra hardware to power/switch the fan (unless it is really low power (ie more of a stirrer than a fan 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 April 2022 09:43 UTC](https://discourse.nodered.org/t/install-and-run-pigpiod-daemon-on-docker-image/57690/5 "2022-04-04T09:43:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
