4 ms·
Given Docker for Mac controls an internal VM instance to actually run the containers, is there much benefit over just using Docker in a Linux VM? It's pretty e
by giobox 9y ago
Given Docker for Mac controls an internal VM instance to actually run the containers, is there much benefit over just using Docker in a Linux VM?
It's pretty easy these days to use tools like Vagrant to spin up the VM then run a Docker Compose file or whatever to get your development environment ready, and would result in identical cross platform environments.
- tonyhb 9y agoI think it's easier for most people to get started using Docker for Mac, but yeah – I run Debian headless in a VM, SSH in and use that for Docker. Way less magic, and I have full control of the underlying OS to test out new kernels etc. I also like that my underlying code is also within an encrypted VM disk, not laying around on my host mac os.
- smc12 9y agoDo you use a GUI editor in the VM? I have a similar setup (Mac hosting a headless VM running Docker) and can't stand performance when using X-Forwarding and XQuartz
- deleted 9y ago[deleted]
- mkesper 9y agoYou could use emacs with tramp from outside: https://www.emacswiki.org/emacs/TrampMode https://www.emacswiki.org/emacs/TrampMode
- tonyhb 9y agoNope, neovim and tmux is all I use regularly. I tried to proxy X11 to quartz and it was way too slow. When I use Reason I'll sometimes mount over SSHFS to edit using neovim in visual studio, though right now I'm building native iOS apps with it so it's actually not in my VM so that xcode can build faster
- eip 9y ago>Given Mac, is there much benefit over just using Linux? FTFY
- dang 9y agoWould you please stop posting unsubstantive comments to HN?
- lloeki 9y agoThese days I’m just using docker-machine instead of Docker for Mac, as the cost of the latter’s magic is simply not worth it.