Skip to content

Commit

Permalink
WOL root
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jul 13, 2024
1 parent a3a89f5 commit 3162148
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/solutions/wol/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This is a simple solution that provides wake on lan capabilities from inside a c

Docker containers will normally use a docker network, which is a separate network from the host network. This means that the container will not be able to send the magic packet to the host network. Therefore, we need to create the container with the `--network host` option, which will allow the container to send the magic packet to the host network (not the docker network).


The container is also created with the `--user root` option, which allows the container to send the magic packet as root. This is necessary because the `awake` command requires root privileges to send the magic packet, and also to install the `awake` command in the container.

Create the container as follows;

```bash
Expand Down

0 comments on commit 3162148

Please sign in to comment.