6 ms·
For the Mac, just get Canonical’s Multipass (http://multipass.run http://multipass.run) and do an apt-get to install Docker into a VM and use VS Code to “remote
by rcarmo 5y ago
For the Mac, just get Canonical’s Multipass (http://multipass.run http://multipass.run) and do an apt-get to install Docker into a VM and use VS Code to “remote” to it. It will automatically install the Docker extension inside the Linux VM and you’re set.
For Windows, use WSL2 and do the same.
Both can mount “local” folders, although the setup is obviously different.
You now have a better way to manage containers than ever before.
- alanwreath 5y agoCan’t say that limiting developers to VSCode is necessarily a step forward.
- rcarmo 5y agoWell, it does set up everything automagically for you. I can also dig around for my Docker CLI config and the right way to expose the Docker TCP socket to the host, but if you need a quick way to get working, VS Code is it.
- mbreese 5y agoYou don't need VSCode specifically, but it does provide an alternative GUI for managing Docker containers that isn't tied directly to Docker Desktop. You could use anything to manage the Docker VM... VSCode is just one option.
- nklmilojevic 5y agoDoesn't work on M1 chips yet.
- osdril 5y agoIt's in "beta" right now but it works quite well (you can find the binary in the dedicated GitHub issue). Under the hood it just uses QEMU which in turn uses Apple's Hypervisor.framework for virtualization
- johnnypangs 5y agoI believe this is the issue referenced above: https://github.com/canonical/multipass/issues/1857 https://github.com/canonical/multipass/issues/1857
- judge2020 5y agoDo you mean APT via https://docs.docker.com/engine/install/ubuntu/ https://docs.docker.com/engine/install/ubuntu/, correct?
- rcarmo 5y agoNo, you can apt-get docker.io (the repackaged version available for the last 2-3 LTS releases, built from source and with fan networking support). Works for 99.9% of your use cases.
- hda111 5y agoI would strongly recommend docker.io from Ubuntu/Debian repos. This will be always Apache 2.0 licensed. (It's a fork of Moby packaged by Debian people). Docker Engine looks problematic since the license isn't clear at all. For instance, Microsoft didn't include Docker into GitHub Actions, they also forked Moby and packaged it on their own, since they can't comply with the End User Agreement of Docker Engine.
- judge2020 5y agoRegarding the GitHub Docker license thing, this is directly from GH staff (you’re correct): https://github.community/t/what-really-is-docker-3-0-6/16171/2?u=judge2020 https://github.community/t/what-really-is-docker-3-0-6/16171...
- SkyMarshal 5y agoWhy run Docker inside a VM on a Mac, when you can just run the Linux dev environment directly inside the VM? That's just starting to sound like Docker for the sake of Docker. Multipass, Qemu, and Parallels can all provide a solid VM on Mac host. All you need after that is your dev environment VM guest image to deploy to the team. https://wiki.qemu.org/Hosts/Mac https://wiki.qemu.org/Hosts/Mac https://www.parallels.com/ https://www.parallels.com/
- dsjoerg 5y agoSome people here actually want and need Docker features. For me it's the ability to run from a given image and know that I've got _exactly_ the same image that other developers have. Reproducibility.
- techthumb 5y agoWhen I want a very specific version if the image, I use the SHA to pull/run $ docker pull hello-world@sha256:7d91b69e04a9029b99f3585aaaccae2baa80bcf318f4a5d2165a9898cd2dc0a1
- _joel 5y agoOr you could tag a little more optimally.
- rileymichael 5y agoTags are mutable, digests aren't.
- _joel 5y agoWhy, how often do you change tags after you've built a container and for what reason if so?
- jonjonsonjr 5y ago
- secondcoming 5y agoWhy don't you just use the VM directly?
- deleted 5y ago[deleted]
- hda111 5y agoThis is the best solution. Multipass is also great software.