Here I'm sharing the simplest way to go around it. (I'm wondering if shared volume performance is any better since it's using sshfs instead of gRPC FUSE. It remains free for small businesses (fewer than 250 employees AND less than 10 million in annual revenue), personal use, education, and non-commercial open-source projects. Start XQuartz from command line using open -a XQuartz. Everything (including volume mounts and host-mode networking) works just like it did before and performance is exceptional. Install docker using brew cask install docker or directly from the website here. I've been using this setup for the last two days and it's been smooth sailing. The YAML for my Lima VM uses Alpine and installs/configures qus so that you can run multi-arch Docker containers, even on M1 Macs. Then tell Docker to use the Unix socket that it makes available: export DOCKER_HOST="unix://$HOME/.lima/docker.sock" Then, create a directory for your new Lima VM and clone my example into it: mkdir $HOME/lima_machines &Ĭurl -sSLo $HOME/lima_machines/docker.yaml \įinally, start your Lima VM: limactl start $HOME/lima_machines/docker.yaml -tty=false Install and run Docker Desktop on Mac Double-click Docker.dmg to open the installer, then drag the Docker icon to the Applications folder. I wrote a post about it in my blog, but I'll summarize it here:įirst, install Lima and the Docker CLI: brew install lima docker This will start up a new container called DockerTest, using the dockertest image we created. It should only take a few seconds though, and when it’s done, you can run it with: docker run -name DockerTest -p 8080:80 -d dockertest.
I figured out how to use Lima with Portainer to get 99% of the Docker Desktop experience with 100% less Electron. Docker should find the Dockerfile, and get to work. Avoid manual configurations (or actions) inside container. Do not use SSH (if you need to step into container, you can use the docker exec command). Haven't thought about Docker Desktop until someone gilded me for this post. Run the process in the foreground (don’t use systemd, upstart or any other similar tools).