dockerkubernetescontainerd

Local Registry for Kubernetes cluster running with containerd


I have a 4 node (on 4 different machines) Kubernetes cluster running over containerd (setuped with kubeadm), and i need to run some local images on this cluster but i can't find a way to create a containerd local registry to push my images to and then kubernetes to pull.

So i've tried install docker to create a docker private repository i faced a warning saying that there was a conflict with containerd, so i'm stuck and don't know another alternatives.


Solution

  • You can build with Docker and then transfer to Containerd

    Sample steps:

    a. Build dockerfile

    docker build -t yourimagename .
    

    b. Save image as a tar file:

    docker save yourimagename > yourimagename.tar
    

    c. Import to containerd registry

    ctr -n=k8s.io image import yourimagename.tar