Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Spin container image does not seem to work #202

@rgl

Description

@rgl

At https://github.com/rgl/spin-http-ts-example/tree/test-release I'm building an example spin http-ts application and pushing it with spin registry push to https://github.com/rgl/spin-http-ts-example/pkgs/container/spin-http-ts-example.

The application works fine when running locally (using spin up) and in fermyon cloud (using spin deploy), but I cannot make it work with containerd 1.7.12 and https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.10.0/containerd-wasm-shims-v2-spin-linux-x86_64.tar.gz.

containerd is configured as:

# containerd config default >/etc/containerd/config.toml
# cat >>/etc/containerd/config.toml <<EOF

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.spin]
  runtime_type = "io.containerd.spin.v2"
EOF

I've tried with:

ctr image pull \
    ghcr.io/rgl/spin-http-ts-example:0.1.0-rc5
ctr run \
    --rm \
    --runtime io.containerd.spin.v2 \
    ghcr.io/rgl/spin-http-ts-example:0.1.0-rc5 \
    ctr-spin-http-ts-example

But nothing seems to happen besides the shim being started:

# ps ax | grep shim
   6857 ?        S      0:00 /usr/local/bin/containerd-shim-spin-v2 -namespace default -id ctr-spin-http-ts-example -address /run/containerd/containerd.sock

Can you please help me getting it running in containerd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions