Docker platform wasi/wasm is not working?

A basic command building a docker container with platform wasi/wasm does not work with the error -
Error exporting to image, operating system is not supported.
Similarly the example with the shim

docker run \
  --runtime=io.containerd.wasmedge.v1 \
  --platform=wasi/wasm \
  secondstate/rust-example-hello

is also giving the same error. The solution used here is to use the platform wasm. But the shim doesn’t support that.

I am running this on Ubuntu 22.04 with docker 26.1.0, containerd 1.6.28
Any solutions?