website/content/en/docs/examples/containers/containerd/_index.md
Lima comes with the built-in integration for containerd and nerdctl (contaiNERD CTL):
{{< tabpane text=true >}} {{% tab header="Rootless" %}}
lima nerdctl run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
or
nerdctl.lima run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
make install, the nerdctl.lima command is also available as nerdctl.brew install lima, you may make an alias (or a symlink) by yourself:
alias nerdctl=nerdctl.lima
{{% /tab %}}
{{% tab header="Rootful" %}}limactl start --containerd=system
lima sudo nerdctl run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
{{% /tab %}} {{< /tabpane >}}
The usage of the nerdctl command is similar to the docker command. See the Command Reference.
To disable containerd, start an instance with --containerd=none:
limactl start --containerd=none