skip to Main Content

I was able to get into an Azure Kubernetes Service (AKS) node by referring to Connect to Azure Kubernetes Service (AKS) cluster nodes for maintenance or troubleshooting.

I am trying to list the images present in the worker node. Do I need to install anything like nerdctl/crictl in the nodes or is there any other command I can use which is readily available in the nodes?

In short, what’s the alternative for Docker commands in AKS worker nodes?

containerd://1.4.9+azure is the CONTAINER-RUNTIME

3

Answers


  1. Check Why and how to use containerd from the command line. I am not sure if it helps or not. But it does have containerd commands to check.

    The reference is Debugging Kubernetes nodes with crictl.

    Use these commands to check:

    sudo crictl --help
    sudo crictl ps
    sudo crictl images
    
    Login or Signup to reply.
  2. It seems that you are using it inside the container. Go to the host process with chroot /host and use it.

    The image is --image=mcr.microsoft.com/dotnet/runtime-deps:6.0. I used this.

    Login or Signup to reply.
  3. You can try using ctr cli tool which come prepackaged with containerd.

    ctr -n <namespace> image list

    NOTE: for checking the namespace kindly run

    ctr ns list

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search