There is now an eBlocker 4 Docker image available for testing!
(arm64 & x86_64 worked)
Docker Hub: https://hub.docker.com/r/shedowe/eblocker
Highlights:
- Full eBlocker system (including systemd) inside a container
- Runs in a macvlan network as its own device (own IP & MAC)
- Persistent root filesystem via volume (`/eblocker-root`)
A sample docker-compose setup is included in the Repository Overview on Docker Hub.
Docker Run equivalent
Using docker run with macvlan requires two steps: first creating the network, then running the container.
1. Create the Macvlan network: (Adjust parent=eth0, subnet, and gateway to your local network settings)
docker network create -d macvlan \
-o parent=eth0 \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
eblocker-macvlan
2. Start the Container:
docker run -d \
--name eblocker-ct \
--hostname eblocker \
--privileged \
--restart unless-stopped \
--mac-address "02:EB:40:12:34:56" \
--net eblocker-macvlan \
--ip 192.168.1.20 \
-v eblocker-root:/eblocker-root \
shedowe/eblocker:latest
Notes:
Set parent to the main interface on your host/VM/PC (e.g. eth0, ens18 …).
Adjust subnet, gateway and ipv4_address to match your own network.
Inside the eBlocker UI you can keep the network mode on Automatic/DHCP – the container itself still has a static IP via macvlan, so it remains reachable under a stable address.
Feedback, bugs and ideas are welcome!