Search code examples
dockerdockerfilecontainersdocker-registrycontainerd

How to create a container with containerd instead of pulling it


Im currently checking out containerd. Unfortunately the documentation is pretty sparse and you don’t find much on the Internet about it.

Im wondering if it is possible to create a new container from a Dockerfile or similar, just like docker build would work. The documentation only shows an example where the image is being pulled from a registry.

Id like to do that through the Go client not the ctr command line tool.


Solution

  • This is possible with BuildKit: https://github.com/moby/buildkit#containerd-image-store