News for hackers. Stuff that matters.
Re:Docker Desktop no longer free for large companies by rcarmo on Tuesday August 31, 2021 @12:04PM (#28369720)
For the Mac, just get Canonical’s Multipass (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.

Re:Docker Desktop no longer free for large companies by alanwreath on Tuesday August 31, 2021 @12:22PM (#28369959)
Can’t say that limiting developers to VSCode is necessarily a step forward.
Re:Docker Desktop no longer free for large companies by mbreese on Tuesday August 31, 2021 @03:27PM (#28372365)
You 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.

Re:Docker Desktop no longer free for large companies by rcarmo on Tuesday August 31, 2021 @12:52PM (#28370456)
Well, 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.
Re:Docker Desktop no longer free for large companies by SkyMarshal on Tuesday August 31, 2021 @02:51PM (#28371977)
Why 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://www.parallels.com/

Re:Docker Desktop no longer free for large companies by dsjoerg on Tuesday August 31, 2021 @03:04PM (#28372125)
Some 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.
Re:Docker Desktop no longer free for large companies by horsawlarway on Tuesday August 31, 2021 @03:30PM (#28372428)
I might be wrong, but I think his point is that by the time you're running a linux VM for docker, why not go ahead and get the rest of the tooling for free?

Docker can still be run in the VM just fine, for cases where you want a reproducible build environment.

I do this at any company that lets me (and by lets, I mean doesn't explicitly forbid) - They all give me a Mac, and the first (and sometimes only) thing I install is usually vmware fusion, followed by the linux distro of my choice (Arch).

Re:Docker Desktop no longer free for large companies by SkyMarshal on Wednesday September 01, 2021 @02:15AM (#28376887)
>for cases where you want a reproducible build environment.

Or just create your reproducible build environment as a QEMU VM image instead of a docker file. That way you only have to install a VM image, instead of install VM image/OS + install Docker + install your Docker file.

Re:Docker Desktop no longer free for large companies by horsawlarway on Friday September 03, 2021 @12:02PM (#28405947)
See, I don't really agree here.

Containers solve a different problem than vms. The biggest issues (at least for me) are

1. The second a dev starts using that VM, it's no longer reproducible. The goal of docker is that a developer can create reproducible images as a part of normal development.

2. I won't be running that QEMU vm in production, but I might very well be running the exact same container image in both development and production.

Re:Docker Desktop no longer free for large companies by dolmen on Wednesday September 01, 2021 @12:43PM (#28382217)
Just the cost of porting one single Dockerfile to anything else is bigger than the Docker licence cost for 1 year.
Re:Docker Desktop no longer free for large companies by techthumb on Tuesday August 31, 2021 @03:30PM (#28372419)
When I want a very specific version if the image, I use the SHA to pull/run

  $ docker pull hello-world@sha256:7d91b69e04a9029b99f3585aaaccae2baa80bcf318f4a5d2165a9898cd2dc0a1
Re:Docker Desktop no longer free for large companies by _joel on Tuesday August 31, 2021 @04:28PM (#28373182)
Or you could tag a little more optimally.
Re:Docker Desktop no longer free for large companies by rileymichael on Tuesday August 31, 2021 @06:25PM (#28374413)
Tags are mutable, digests aren't.
Re:Docker Desktop no longer free for large companies by _joel on Tuesday August 31, 2021 @07:48PM (#28374988)
Why, how often do you change tags after you've built a container and for what reason if so?
Re:Docker Desktop no longer free for large companies by jonjonsonjr on Tuesday August 31, 2021 @09:40PM (#28375637)
Digests cryptographically guarantee that you get the correct content, which prevents both malicious tampering (mitm, stolen credentials, etc) or accidental mutations. This is why "immutable tags" are a bad substitute and an oxymoron.

There are also better caching properties when using content addressable identifiers. For example with kubernetes pull policies, using IfNotPresent and deploying by digest means you don't even have to check with the registry to initialize a pod if the image is already cached, which can improve startup latency.

Re:Docker Desktop no longer free for large companies by darkwater on Wednesday September 01, 2021 @05:44AM (#28377932)
> There are also better caching properties when using content addressable identifiers. For example with kubernetes pull policies, using IfNotPresent and deploying by digest means you don't even have to check with the registry to initialize a pod if the image is already cached, which can improve startup latency.

While agree on the unquoted part, this is true also for human-readable (aka mutable-that-should-be-immutable) tags, when that pull policy is set (which is by default for everything that is not `latest`)

Re:Docker Desktop no longer free for large companies by knicknic on Wednesday September 01, 2021 @04:02AM (#28377404)
With a sha you shouldn’t have to change the pull policy. However there isn’t a need for always if you have the sha.
Re:Docker Desktop no longer free for large companies by rcarmo on Tuesday August 31, 2021 @03:24PM (#28372336)
Because you can map your working folder inside it on both Multipass and WSL2, and you can get an integrated editor experience with VS Code, which is what many people apparently want to do (I’m a tmux guy so I don’t care, but I thought I’d provide a user-friendly approach).
Re:Docker Desktop no longer free for large companies by osdril on Tuesday August 31, 2021 @03:20PM (#28372300)
On Apple Silicon Multipass actually uses QEMU under the hood. Basically it's just a (very convenient) wrapper
Re:Docker Desktop no longer free for large companies by discordance on Wednesday September 01, 2021 @12:52AM (#28376552)
I want to ship a dockerfile in my CI/CD pipeline, not a VM image
Re:Docker Desktop no longer free for large companies by sneak on Tuesday August 31, 2021 @03:28PM (#28372392)
Because the end result of a lot of workflows (eg k8s) is a buildable dockerfile, or built docker image for deployment.
Re:Docker Desktop no longer free for large companies by judge2020 on Tuesday August 31, 2021 @02:33PM (#28371768)
Re:Docker Desktop no longer free for large companies by hda111 on Wednesday September 01, 2021 @06:14AM (#28378064)
I 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.

Re:Docker Desktop no longer free for large companies by judge2020 on Wednesday September 01, 2021 @10:08AM (#28380017)
Regarding 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...
Re:Docker Desktop no longer free for large companies by rcarmo on Tuesday August 31, 2021 @02:40PM (#28371860)
No, 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.
Re:Docker Desktop no longer free for large companies by nklmilojevic on Tuesday August 31, 2021 @02:31PM (#28371737)
Doesn't work on M1 chips yet.
Re:Docker Desktop no longer free for large companies by osdril on Tuesday August 31, 2021 @03:17PM (#28372269)
It'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
Re:Docker Desktop no longer free for large companies by johnnypangs on Wednesday September 01, 2021 @04:58AM (#28377653)
I believe this is the issue referenced above: https://github.com/canonical/multipass/issues/1857
Re:Docker Desktop no longer free for large companies by hda111 on Tuesday August 31, 2021 @08:02PM (#28375092)
This is the best solution. Multipass is also great software.
Re:Docker Desktop no longer free for large companies by secondcoming on Tuesday August 31, 2021 @02:55PM (#28372010)
Why don't you just use the VM directly?
Re:Docker Desktop no longer free for large companies by hda111 on Thursday September 02, 2021 @01:50PM (#28395157)
Multipass uses reverse sshfs for mounting into the VM. This is a concept also used by lima now. https://github.com/lima-vm/lima
Re:Docker Desktop no longer free for large companies by rcarmo on Tuesday August 31, 2021 @03:22PM (#28372310)
Folder mapping, which both options provide.