Score:0

Can I configure Docker to manage resources in containerd's "k8s.io" namespace?

ao flag

I had a Kubernetes cluster with Docker and recently migrate it to containerd, but I still want to use Docker to manage images and containers for Kubernetes because of some compatibility problems.

When using Docker as a runtime, Docker was able to load images so that Kubernetes can use it, and was able to list containers running as Kubernetes pods with docker ps command.

Even after switching to containerd, I can still run and use Docker with it. However as Docker is isolated from Kubernetes world, it's impossible to manage resources in Kubernetes using docker commands.

It seems that Kubernetes is running with containerd's namespace "k8s.io" so I hope I can configure Docker to manage resources in that namespace, is it possible?

Score:1
cn flag

I don't think you'll be able to get the Docker CLI to do that as it's not aware of containerd namespaces.

However there's a tool which provides docker CLI like features for containerd, which is nerdctl, and that could be a good option to explore for this.

Daigo avatar
ao flag
Thanks, I will try to convert my tool so that it uses nerdctl instead of docker.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.