-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1 cgroup feature is required, but was not enabled during compile time #288
Comments
I ran spin shim on k3d from master and used docker on Ubuntu 22.02 and had got the same problem 13s Warning Failed pod/wasm-spin-7bc59d855b-p85lq Error: failed to start containerd task "spin-hello": Others("failed to create container: v1 error: v1 cgroup feature is required, but was not enabled during compile time"): unknown
12s Warning BackOff pod/wasm-spin-7bc59d855b-p85lq Back-off restarting failed container |
@thangchung do you have a link to the repo that contains spin application / image, and a workflow yaml file? |
@Mossaka The code is at https://github.com/thangchung/dapr-labs/blob/feat/spin-refactor/polyglot/iac/kind-spin/product-api-deploy.yaml But I think my problem is that wsl2 - Ubuntu 22 with cgroup v2 enabled does not work well, still figured it out by searching issues around on the wsl2 repo. |
@0xE282B0 @Mossaka Turned out, I can handle it work on WSL2 - Ubuntu 22.02. Steps below: Follow the guidance at microsoft/WSL#9868 (comment) to configure WSL2 to use $ cat /etc/fstab
LABEL=cloudimg-rootfs / ext4 defaults 0 1
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0 Now, we can start docker without any error caused to stop the > docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
elated_banach docker-container
elated_banach0 unix:///var/run/docker.sock inactive
peaceful_carson * docker-container
peaceful_carson0 unix:///var/run/docker.sock stopped
default docker
default default running v0.11.6+0a15675913b7 linux/amd64, linux/amd64/v2, linux/amd64/v3 Now I run: > docker buildx use default After that, I run: > docker buildx build -f Dockerfile --platform wasi/wasm,linux/amd64,linux/arm64 -t ghcr.io/thangchung/dapr-labs/product-api-spin:1.0.1 . --push It worked. About |
Excellent, that will help windows users a lot! |
I took a closer look and the shims in this repo (WasmTime,WasmEdge,Wasmer) seem to work with cgroups v1. |
Hi,
I tried the spin shim from master and when I try to run it on
colima
withkind
I get the following error:Is something blocking us from enabling V1 croup?
The text was updated successfully, but these errors were encountered: