问HN:如何在VS Code中创建一个macOS开发容器?
为了避免在安装 npm 包和运行代码(以及运行编码代理)时遇到的麻烦,我使用 devcontainer 来限制在 VS Code 和 Cursor 中的影响范围。<p>但我也在进行本地模型的工作,这意味着我只能在 CPU 上运行。我知道在 Windows 上有一些容器可以将 CUDA 相关的内容转发到主机系统上运行,但在 MacOS 上没有这样的解决方案。<p>内置的 devcontainer 功能是基于 Docker 的,但也许有人已经破解了某些东西,使得本地虚拟化能够像 Docker 一样呈现,以便我可以让它工作?<p>其他人是怎么做的呢?
查看原文
In order to avoid all the fun of installing npm packages and running such code (as well as running coding agents!), I use a devcontainer to limit the blast radius inside VS Code and Cursor.<p>But I am also doing local model stuff, which means I can only run on CPU. I know on Windows there are containers that will forward CUDA stuff to the host system to run, but there is no such thing on MacOS.<p>The builtin devcontainer stuff is based on Docker, but maybe someone has hacked something together to get native virtualization to present itself like docker so i could get this to work?<p>What do other people do?