Docker Installation (Remote Wake-on-LAN Service)

Docker is used to run a background service that enables remote Wake-on-LAN (WOL) for Turn Off PC.

This guide explains why Docker is required, what it is used for, and how to install it on supported Linux systems.


Why Docker is required

Wake-on-LAN works only inside the local network (LAN).

To wake a computer from outside the home network, an intermediate system is required to act as a bridge between:

Docker is used to run this bridge as a containerized service.


What Docker is used for in Turn Off PC

In Turn Off PC, Docker is used to run a Python-based service that:

This enables remote Wake-on-LAN without exposing ports or routers to the internet.


Where this Docker service runs

The Docker container can run on any always-on Linux device inside the local network, such as:

Raspberry Pi OS is a Linux distribution, so the installation process and commands are the same.


How the system works (high level)

  1. The Turn Off PC mobile app sends a request over the VPN
  2. The Docker container receives the request
  3. The container runs a Python program
  4. The Python program sends a Wake-on-LAN packet on the local network
  5. The target computer powers on

Docker ensures this service runs reliably and independently from the host system.


What Docker does NOT do

Docker does not:

Docker only provides a runtime environment for the WOL bridge service.


Supported operating systems

Docker is required only on Linux systems for this setup.

This includes:

The same installation commands are used.


Requirements

To use Docker for remote Wake-on-LAN, you need:


Important notes

If the container is not running, remote Wake-on-LAN will not work.


Continue

Proceed with Docker installation on Linux / Raspberry Pi OS: