This guide explains how to install Docker on Linux, including Raspberry Pi OS, to run the remote Wake-on-LAN service for Turn Off PC.
The installation process and commands are the same for Linux and Raspberry Pi OS.
This guide applies to:
Applies to:
After completing this guide:
Before continuing, make sure that:
Docker provides an official installation script.
Run the following command:
curl -fsSL https://get.docker.com | sh
This command:
This works on both Linux and Raspberry Pi OS.
Ensure Docker starts automatically at boot:
sudo systemctl enable docker
sudo systemctl start docker
Verify Docker is running:
sudo systemctl status docker
The service should be active (running).
By default, Docker requires sudo.
To allow your user to run Docker commands without sudo:
sudo usermod -aG docker $USER
Then log out and log back in for the change to take effect.
Run the following command:
docker version
You should see both:
Test Docker with a simple container:
docker run hello-world
If the container runs successfully, Docker is installed correctly.
docker groupusermodsudo systemctl start docker
journalctl -u docker