top | item 31200282

(no title)

topher515 | 3 years ago

This is quite surprising and interesting to me. Can you provide links where I can read about this and/or try getting it set up for myself?

discuss

order

electroly|3 years ago

I don't have any links handy, but I bought a copy of Parallels, set up Ubuntu, and installed docker inside normally. On my host machine, I use the docker client (only the client, no engine) with DOCKER_HOST set to the VM's hostname. VSCode's Remote Container extension is capable of being set up this way, too, so I can attach it to a running container in the VM. It's definitely more work to set up than using Docker Desktop, but I found the performance improvement to be worth it.

boundlessdreamz|3 years ago

Even docker desktop runs the same way i.e they are running docker on a linux VM. It's hidden from the user but that linux VM can be accessed.

For improving performance, you can enable some of the newer experimental features in latest docker (Virtualization Framework and VirtioFS). The combination works really well except for databases [1] due to the way FS sync is handled. To fix that a setting need to be changed in the linux VM that docker uses. [2]. Hopefully docker will make that a default setting in the future.

[1] https://github.com/docker/roadmap/issues/7#issuecomment-1042... [2] https://github.com/docker/roadmap/issues/7#issuecomment-1044...

d3nj4l|3 years ago

I can't speak to GP's claims about performance because I never used Docker Desktop, but I use lima [1] with colima [2] as my docker host. It's dead easy to set up: `brew install colima` followed by `colima start`.

1: https://github.com/lima-vm/lima

2: https://github.com/abiosoft/colima

pleb_nz|3 years ago

How do you find performance with these options?