nerdctl is a relatively new command-line client for containerd. Unlike ctr, nerdctl aims to be user-friendly and Docker-compatible. To some extent, nerdctl + containerd can seamlessly replace docker + dockerd. However, this does not seem to be the main goal of the project.

From the basic usage standpoint, comparing to ctr, nerdctl supports:

  • Image building with nerdctl build (BuildKit required)
  • Container networking management
  • Docker Compose with nerdctl compose up

And the coolest part about it is that nerdctl tries to provide the identical to docker (and podman) command-line UX. So, if you are familiar with docker (or podman) CLI, you are already familiar with nerdctl.

nerdctl run -d -p 8080:80 --name nginx-1 nginx

Loading challenge...

🧐 Want a tricky one - try finding discrepancies between docker run and nerdctl run behaviors.

You can stop (and remove) the container using the familiar Docker syntax:

nerdctl stop nginx3
nerdctl rm nginx3
🚧 Work in progress... Please, consider upgrading your account to help us finish this content faster.

Level up your server-side game — Join 7,000 engineers who receive insightful learning materials straight to their inbox