Manage Kubernetes resources via Terraform section - error: failed to create cluster

I’m trying to follow through with this tutorial:

  • brew install kind goes through alright
  • curl --output kind-config.yaml successfully downloads the yaml file
  • kind create cluster --name terraform-learn --config kind-config.yaml fails

The logs are below:

% kind create cluster --name terraform-learn --config kind-config.yaml
Creating cluster "terraform-learn" ...
 ✓ Ensuring node image (kindest/node:v1.27.3) 🖼
 ✗ Preparing nodes 📦
Deleted nodes: ["terraform-learn-control-plane"]
ERROR: failed to create cluster: command "docker run --name terraform-learn-control-plane --hostname terraform-learn-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=terraform-learn --net kind --restart=on-failure:1 --init=false --cgroupns=private --publish= --publish= -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72" failed with error: exit status 125
Command Output: ab141108005dcb609294c73f1dd136392b20ffc490912354b3fa8468866d5d02
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount cgroup:/sys/fs/cgroup/openrc (via /proc/self/fd/7), flags: 0xe, data: openrc: invalid argument: unknown.

For reference, I am using an M1 Mac. I am using colima. I have kubectl installed, and colima start --kubernetes gives me
WARN[0000] already running, ignoring

Am I doing something wrong? docker ps shows that nothing is running either, and kind get clusters shows ‘no clusters found’.

I’m at a bit of a loss. Any advice would be super helpful!