Skip to content

fightforlife/docker_hddfancontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker_hddfancontrol v2

a Docker image for hddfancontrol v2 by desbma + hd-idle by adelolmo Please checkout their apps here:

v1 to v2 migration:

when switching from hddfancontrol v1 to v2 the command arguments have changed. I adapted the ENV variales accordingly. Just changing the docker tag will not work. Please check out the example docker compose file.

This docker image is built with the following steps:

  • Builder: use alpine to fetch the latest versions from source and build both binaries.
  • Install needed dependencies to run binaries: lm-sensors, hdparm, smartmontools, sdparm,...
  • nclude the start_services.sh script to run the binaries.

The start_services.sh script does the following:

  • detect all hwmon sensors and load the matching kernel modules (they need to be available in the hosts kernel)
  • list available pwm fans and connect disks
  • If no PWM config is given, the script will pause. Then you can exec "pwmconfig" inside the container to find the correct pwm paths and speed values.
  • Start hddfancontrol with the provided parameters from ENV
  • Start hd-idle with the provided parameters from ENV
  • Wait for any process to terminate.

Docker compose

ToDo

  • Find a way to get rid of the priviliged mode and use the devices directly

About

simple Docker image for hddfancontrol by desbma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages