Skip to content

homebridge-wol on Docker homebridge : missing instructions on how to add ssh to docker to run remote commands #153

Discussion options

You must be logged in to vote

I can't necessarily recommend modifying a running Docker container. The "solution" to this is to create your own image by using oznu/docker-homebridge as the base:

FROM oznu/docker-homebridge

RUN apk add --no-cache openssh-client

You may need to alter it a bit, but the idea is that you build that image and run it instead.

For reference, here is the Dockefile I use:

# Use the latest maintainance LTS version
FROM node:12-buster-slim

# Install dependencies
RUN apt-get update && \
  apt-get install -y python3-pip iputils-ping && \
  rm -rf /var/lib/apt/lists/*

USER node
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global

# Install plugins
RUN npm install --global --only=production homebridge hom…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xavbart
Comment options

@xavbart
Comment options

Answer selected by AlexGustafsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants