News for hackers. Stuff that matters.
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by user3939382 on Wednesday December 07, 2022 @07:49AM (#33893713)
Give me an open source version of this program that runs in CLI and we’ll talk. I think it’s insane that a dev tool in this (low level) category and with this level of popularity is not only closed source but also GUI. I can’t think of any other major tool with those characteristics.

I’m on the fence about WASM. The capabilities are impressive, but webpacked JS already nips at the paradigm we had where users could see a legible version of website code running on their computer and WASM makes the problem worse.

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by nunez on Wednesday December 07, 2022 @09:57AM (#33895008)
You can absolutely install the wasm shim without Desktop. (They won't tell you that because Desktop is a revenue stream for Mirantis.)

In your VM or WSL instance that's running Docker, get the shim from here: https://github.com/deislabs/containerd-wasm-shims (You might need to build it yourself)

Then specify the --runtime and --platform arguments like instructed in the doc, but with a slight modification:

    --runtime=containerd-wasm-shim=/path/to/containerd/wasm/shim
This works because most container runtimes are self-contained Go binaries. Haven't used the wasm runtime yet, so not sure if that is true for this runtime as well.
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by jsmith45 on Wednesday December 07, 2022 @03:06PM (#33899507)
If one wants to use exactly the same command line, then one could compile https://github.com/second-state/runwasi, and place the compiled shim in the correct path.

The difference vs deislabs shims you linked or vs the containerd/runwasi (formerly deislabs/runwasi) is the exact wasm runtime used.

secondstate (that Docker Desktop includes) uses WasmEdge, containerd/runwasi uses wasmtime, and deislabs/containerd-wasm-shims uses Fermyon Spin or SpiderLighting depending on which shim you use.

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by anentropic on Wednesday December 07, 2022 @07:57AM (#33893805)
Docker runs on the CLI, all the examples in the link are from the CLI
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by user3939382 on Wednesday December 07, 2022 @08:52AM (#33894314)
There is no CLI version of Docker Desktop https://www.docker.com/products/docker-desktop/

Once this GUI app is running, you can interact with it via CLI.

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by l3uwin on Thursday December 08, 2022 @01:00AM (#33904716)
Only on Mac and windows since they require a Linux VM. On (Ubuntu 22.04 lts server for example) you can still just apt-get install docker.io, add your user to the docker group and call it a day.

If you just want to replace the desktop management portion you can look into https://podman-desktop.io/ Or even https://multipass.run/

Both will get you to a docker host from the desktop.

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by anentropic on Wednesday December 07, 2022 @11:16AM (#33896117)
Oh, hmm, it has been like that for a while - I remember when there was no Docker Desktop and you just installed the cli

It seems like it may still be possible, albeit a bit more fiddly work: https://medium.com/crowdbotics/a-complete-one-by-one-guide-t...

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by sebazzz on Wednesday December 07, 2022 @09:52AM (#33894946)
What you are saying is that de daemon isn't a separate service but only runs as part of the GUI. Also on *nix the Docker CLI talks to the daemon. The difference is how the daemon is hosted.
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by hiccuphippo on Wednesday December 07, 2022 @08:27AM (#33894075)
This seems to be using WasmEdge underneath to run the wasm and docker for managing it so you could skip the middleman and run WasmEdge directly.
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by satvikpendem on Wednesday December 07, 2022 @03:01PM (#33899442)
Podman?
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by KronisLV on Wednesday December 07, 2022 @04:41PM (#33900692)
Podman also has an open-source GUI project called Podman Desktop going on, in addition to their CLI: https://podman-desktop.io/

Oh and in the same space there is Rancher Desktop as well (which has the excellent K3s under the hood): https://rancherdesktop.io/

Personally, I'll probably keep using Docker Desktop on some platforms anyways as long as there won't be licensing issues, because it's just so boring and (mostly) stable at this point.