I wanted to be able to run some SSH commands from openhab, so I tried to install an SSH client in the image. I tried two different methods, by rebuilding a docker image over the existing one, and by adding a script in the cont-init.d folder.
Dockerfile:
FROM "openhab/openhab:3.2.0"
RUN apt-get clean && apt-get update --allow-insecure-repositories && apt-get install -y --allow-unauthenticated openssh-client
Summary
Hi there!
I wanted to be able to run some SSH commands from openhab, so I tried to install an SSH client in the image. I tried two different methods, by rebuilding a docker image over the existing one, and by adding a script in the
cont-init.d
folder.Dockerfile:
install.sh:
and they both arrive to the same error:
Also I was obliged to use some insecure flags to access the package repositories but it's already tracked in #373
Possible Solution
I don't have any idea here.
Your Environment
I'm using an Rpi 3B+ and Docker 20.10.8
Image
Docker Host
Configuration
Relevant part of my
docker-compose.yml
: