Re:Show HN: Kage – Shadow any website to a single binary for...
by nikisweeting on Sunday June 14, 2026 @06:36PM
(#48533656)
--no-sandbox is needed in docker, maybe they assume it will mostly run in docker?
[ Parent
| on HN ]
Re:Show HN: Kage – Shadow any website to a single binary for...
by tamnd on Sunday June 14, 2026 @07:13PM
(#48534032)
Exactly. For downloading, Kage requires Chrome or Chromium. Running it inside Docker makes setup easier and keeps cleanup simple:
https://github.com/tamnd/kage/blob/main/Dockerfile
Btw, let me think the way to only enable this when running inside Docker.
Re:Show HN: Kage – Shadow any website to a single binary for...
by nikisweeting on Sunday June 14, 2026 @08:28PM
(#48534865)
Docker is designed to be undetectable by default, the best way I have found is to set env IN_DOCKER=True manually in your Dockerfile + check that there is no $DISPLAY configured + that you're on linux. Usually if all/most of those are true you can safely add --no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage etc. all the docker-specific flags. Thats what we do in https://github.com/ArchiveBox/ArchiveBox/blob/dev/Dockerfile...
Re:Show HN: Kage – Shadow any website to a single binary for...
by tamnd on Monday June 15, 2026 @02:22AM
(#48537319)
It should be fixed by https://github.com/tamnd/kage/pull/12
Thanks for nice trick.
Re:Show HN: Kage – Shadow any website to a single binary for...
by dimiprasakis on Monday June 15, 2026 @07:17AM
(#48539656)
Cool approach.
But, a compromise still lands on host's kernel, Docker doesn't provide kernel isolation (well it does on a macOS because it runs in Docker machine but thats a side effect).
I wonder if a better solution would be to play with seccomp or Linux capabilities so that Chrome is sandboxed even in Docker. Not sure how this would work tbh.
Answering here to get ideas, I saw your fix on Git and request for feedback (will try to review and give it some thought once I find some time)
Re:Show HN: Kage – Shadow any website to a single binary for...
by nikisweeting on Monday June 15, 2026 @06:37PM
(#48547983)
I have never seen anyone pull off seccomp nested sandboxing of Chrome in Docker before, if you manage to figure it out please let me know!