From 8ceec9c823aeaa3ec27898b408b3388fcb625ef8 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm <52838694+fwilhe2@users.noreply.github.com> Date: Sat, 16 Aug 2025 19:59:11 +0200 Subject: [PATCH] nerdctl: add page (#17683) * nerdctl: add page Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --- pages/linux/nerdctl.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/linux/nerdctl.md diff --git a/pages/linux/nerdctl.md b/pages/linux/nerdctl.md new file mode 100644 index 0000000000..ddc873a2e5 --- /dev/null +++ b/pages/linux/nerdctl.md @@ -0,0 +1,36 @@ +# nerdctl + +> Docker-compatible CLI for containerd. +> More information: . + +- List all containers (running and stopped): + +`nerdctl ps {{[-a|--all]}}` + +- Start a container from an image, with a custom name: + +`nerdctl run --name {{container_name}} {{image}}` + +- Start or stop an existing container: + +`nerdctl {{start|stop}} {{container_name}}` + +- Pull an image from a container registry: + +`nerdctl pull {{image}}` + +- Display the list of already downloaded images: + +`nerdctl images` + +- Open an interactive tty with Bourne shell (`sh`) inside a running container: + +`nerdctl exec {{[-it|--interactive --tty]}} {{container_name}} sh` + +- Remove stopped containers: + +`nerdctl rm {{container1 container2 ...}}` + +- Fetch and follow the logs of a container: + +`nerdctl logs {{[-f|--follow]}} {{container_name}}`