I have this setup for Chromium inside Docker
$ cat docker-compose.yaml
services:
chromium:
build:
dockerfile: Dockerfile.chromium
environment:
DISPLAY: $DISPLAY
network_mode: "host"
restart: unless-stopped
tmpfs:
- /tmp
$ cat Dockerfile.chromium
FROM debian:bookworm-slim
RUN <<EOF
apt update
apt install -y chromium
EOF
CMD ["/usr/bin/chromium", "--disable-dev-shm-usage", "--hide-crash-restore-bubble", "--incognito", "--no-sandbox", "--enable-unsafe-webgpu", "--enable-features=Vulkan", "--hide-scrollbars", "https://play.carimbo.cloud/1.0.0/khromatizo/henrique/0.0.26/480p"]
When I run it on a regular site, it works fine (slow, though).
When I run something that requires HW accel, I get this erro:
chromium-1 | [46:46:0523/145925.458585:ERROR:context_group.cc(146)] ContextResult::kFatalFailure: WebGL1 blocklisted
Even with some flags I was unble to get HW accel.
How to have HW accel?