3 ms·
> One difference is that Docker containers use a separate file system isolated from the host, so you have to separately install your editor/shell in there, moun
by nordsieck 4y ago
> One difference is that Docker containers use a separate file system isolated from the host, so you have to separately install your editor/shell in there, mount/clone your dotfiles, etc.
Can't you just mount a volume from your host machine? Then you can use your regular editor, and just run commands from inside the container.
- moojd 4y agoOn Linux absolutely, the IO latency on MacOS with mounted volumes is atrocious. Using a nix environment also avoids the weird edge cases I tend to run into with volumes mounts and file ownership and such.
- deleted 4y ago[deleted]
- rgoulter 4y agoWhile it is possible to work with containers to run programs with files on the host, it's just much more convenient to be able to run programs without dealing with mounting issues.
- ruuda 4y agoFor an editor, maybe, for the files that you mount. But when e.g. a language server or IDE is involved, they need access to the tools that are now only inside the container. And then there's the shell itself, your shell history, etc.