Devcontainers
Hacker ApprovedDevelopment container standard in Developer tools
Recommended for reproducible, isolated team development environments and keeping AI agents off the host, though setup effort is the common caveat.
Recommended for reproducible, isolated team development environments and keeping AI agents off the host, though setup effort is the common caveat.
79 people gave an opinion
- recommend it
- 66
- criticize it
- 13
- approval share
- 84%
Recommended in 12 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 66 people recommend itNeeds 10 or more, met.
- 5.1 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 12 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Limits damage from AI agents
“Wherever practical, I also recommend using devcontainers, so that in addition to breaking supply chain security, large-scale damage would require an unpatched sandbox exploit too.”
Comment from 25 Mar 2026 in “LiteLLM PyPI has been compromised an hour ago, do not update” “both for preventing agents losing your data and defending against secrets-harvesting supply-chain attacks”
Comment from 1 Jun 2026 on Hacker News “the worst thing that can happen is it deletes everything in the filesystem below the mounted repo”
Comment from 9 Jan 2026 in “AI Zealotry” - Comment from 1 May 2026 in “Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library”
- Comment from 14 Jul 2026 in “Grok uploaded my user directory to xAI's servers”
- Comment from 3 Mar 2026 in “Claude Code escapes its own denylist and sandbox”
Keeps host machine clean
“makes it easy to start working on random projects without installing a bunch of dependencies on the host computer”
Comment from 15 Dec 2025 in “Ask HN: What Are You Working On? (December 2025)” “super easy to setup with VSCode and ensures the AI can't access your main machine”
Comment from 14 Jul 2026 in “Grok uploaded my user directory to xAI's servers” “devcontainers let you completely containerize your development environment”
Comment from 9 Mar 2026 in “JSLinux Now Supports x86_64” Consistent, shareable team environments
“It's actually easier to do this than to not, since it provides reusable developer tooling that can be shared among all team members”
Comment from 8 Apr 2026 in “Slightly safer vibecoding by adopting old hacker habits” “Devcontainers work without having to pass special arguments and deal with inconsistent stuff once in the devcontainer itself.”
Comment from 2 Jul 2026 in “Podman v6.0.0” “run reproducible runtimes like k3s or devcontainers so environments stay consistent”
Comment from 8 Mar 2026 in “Cloud VM benchmarks 2026: performance/price for 44 VM types over 7 providers” - Comment from 22 Jan 2026 in “Threat Actors Expand Abuse of Microsoft Visual Studio Code”
Easy setup that just works
“it 2-for-1 also gives benefit of easy to setup coding env for people who don't care about ai”
Comment from 13 Jul 2026 in “Grok uploaded my user directory to xAI's servers” “Use a .devcontainer and you're done in 10 seconds without any new runtime implementations.”
Comment from 23 May 2026 in “Deno 2.8” “If you’re working in docker-land or can use devcontainers, it just works”
Comment from 10 Jan 2026 in “I replaced Windows with Linux and everything's going great” - Comment from 3 Oct 2026 in “Updates to Full Disk Access in macOS”
What people warn about
Each mark is one comment
Hard setup and configuration
“Devcontainers look perfect but also like a bit of a burden to entry with regards to setup.”
Comment from 20 Jan 2026 in “Running Claude Code dangerously (safely)” “My one experience with dev containers put me off of dev containers”
Comment from 23 Jan 2026 in “What Has Docker Become?” “having to craft containers with all my stuff sounds so painful”
Comment from 3 Feb 2026 in “Sandboxing AI Agents in Linux” - Comment from 10 Aug 2026 in “Auto mode is now the default in Claude Code”
Container doesn't protect credentials
“Once you map your GitHub or AWS token into a container, it’s no longer useful as a security boundary.”
Comment from 4 Aug 2026 in “Keyv and friends compromised in active Shai-Hulud supply chain attack” “given that it just wants full control of docker I'm guessing it takes none of that into consideration”
Comment from 2 Apr 2026 in “Ask HN: What dev tools do you rely on that nobody talks about?”
What people said
40 of the 93 comments that mention it, newest first. Each links to the original comment.
“fairly useless if you want to run a random tool like a linter on a random file(s)”
“As long as you install all the tools you need in it, it just works.”
“it seemed like a lot of complexity”
“It takes a bit of figuring out, but once set up the permission prompts go away”
“I quite like the 'features' layer system, adding extra tools to container in a declarative plugin-like way”
“Once you map your GitHub or AWS token into a container, it’s no longer useful as a security boundary.”
“super easy to setup with VSCode and ensures the AI can't access your main machine”
“gives me much needed flexibility and peace of mind with regards to data separation guarantees”
“it 2-for-1 also gives benefit of easy to setup coding env for people who don't care about ai”
“Devcontainers work without having to pass special arguments and deal with inconsistent stuff once in the devcontainer itself.”
“It's called devcontainers and there is a cli for managing it locally.”
“both for preventing agents losing your data and defending against secrets-harvesting supply-chain attacks”
“Use a .devcontainer and you're done in 10 seconds without any new runtime implementations.”
“This will limit the agent in what it can do in the system and what IPs/domains it can reach.”
“No need for any AI-specific tool, this is exactly what devcontainer is for!”
“With the devcontainer CLI, you can even use it from a terminal, no GUI/IDE required.”
“It's actually easier to do this than to not, since it provides reusable developer tooling that can be shared among all team members”
“given that it just wants full control of docker I'm guessing it takes none of that into consideration”
“Wherever practical, I also recommend using devcontainers, so that in addition to breaking supply chain security, large-scale damage would require an unpatched sandbox exploit too.”
“the vscode support for that is great and I don't really mind if it fucked up the ephemeral container”
“devcontainers let you completely containerize your development environment”
“run reproducible runtimes like k3s or devcontainers so environments stay consistent”
“They're very simple to setup and make using LLMs a lot more secure.”
“I only use devcontainers for this purpose, I'm not really a fan in general”
“having to craft containers with all my stuff sounds so painful”
“I also use devcontainers for the cli agents and that has also worked out well.”
“My one experience with dev containers put me off of dev containers”
“the development environment itself should be identical across everyone on the team”
“Devcontainers look perfect but also like a bit of a burden to entry with regards to setup.”
“it's pretty good but I occasionally came across dependencies that were difficult to install in containers”
“Much more usable than setting up a VM and you can share the same desktop environment as the host.”
“I find devcontainers a great way to work with different coding projects”
“If you’re working in docker-land or can use devcontainers, it just works”
“it gives me a persistent sandbox that have ports opened and work in any container environment”
“the worst thing that can happen is it deletes everything in the filesystem below the mounted repo”
“running this in a devcontainer[1][2] or as part of a CI system should be completely fine”
“you can just fire up the Ansible-provided Dev Container with all the dependencies”
“solutions like devcontainers or Nix's development shells can be useful even if costing more overhead”
“makes it easy to start working on random projects without installing a bunch of dependencies on the host computer”
“devpod and devcontainers and the whole system was the most joyous developer experience”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.