A way to use CDP scraper on TrueNAS Scale and install chromedp/headless-shell on TrueNAS Scale.
TrueNAS Scale removed K3s and turn to Docker now. So we can install chromedp/headless-shell in traditional Docker way.
we still use the chromedp/headless-shell recommended command: docker run -d -p 9222:9222 --rm --name headless-shell --shm-size 2G chromedp/headless-shell to start container in this guide update. The traditional Docker way to manage multiple containers is composing Docker compose file, for that we go composerize to convert this commad into docker compose file(I name it with headless_chromedp, change with your favor):
name: headless_chromedp
services:
headless-shell:
container_name: headless-shell
image: chromedp/headless-shell
ports:
- '9222:9222'
shm_size: 2G
note the section
ports:
- '9222:9222'
it specified the access port 9222
save these content into a compose file - let’s name it chromedp_compose.yaml and put it to TrueNAS directory: /mnt/storage0/chromedp/chromedp_compose.yaml
now we can turn to TrueNAS Scale and install chromedp App: click Install via YAML in App - Discover Apps
and
include the docker compose file you just created in /mnt/storage0/chromedp/chromedp_compose.yaml, fill the App Name or you can’t save your cahnge:
include:
- /mnt/storage0/chromedp/chromedp_compose.yaml
last step, click Save then job done:
BTW, if you hate SSH and terminal, install a vscode-server or use vscode’s Remote Explorer


