So far I installed my additional needed stuff directly in Docker, as a "post argument".
/bin/sh -c 'apt update && apt install -y smartmontools && apt install -y lm-sensors && apt install -y nvme-cli && apt install -y ipmitool && telegraf'
This does not work anymore. The error message appears as mentioned in the headline. How can I as root continue to install these things, as a "post argument"?
System: Unraid - Docker - Telegraf:latest
RUN
line in your Dockerfile? You need to switch toUSER root
before you run that to be able to install packages. Those specific packages, though, you probably won't be able to run – a Docker container usually can't access the sorts of very-low-level hardware devices lm-sensors manages. – StrictionUSER
directive or adocker run -u
option. Do you have a larger excerpt of the Dockerfile? – Striction