Skip to content

Commit 8ceec9c

Browse files
fwilhe2dmmqz
andauthored
nerdctl: add page (#17683)
* nerdctl: add page Co-authored-by: Dylan <[email protected]>
1 parent 58e8d8f commit 8ceec9c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/linux/nerdctl.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# nerdctl
2+
3+
> Docker-compatible CLI for containerd.
4+
> More information: <https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md>.
5+
6+
- List all containers (running and stopped):
7+
8+
`nerdctl ps {{[-a|--all]}}`
9+
10+
- Start a container from an image, with a custom name:
11+
12+
`nerdctl run --name {{container_name}} {{image}}`
13+
14+
- Start or stop an existing container:
15+
16+
`nerdctl {{start|stop}} {{container_name}}`
17+
18+
- Pull an image from a container registry:
19+
20+
`nerdctl pull {{image}}`
21+
22+
- Display the list of already downloaded images:
23+
24+
`nerdctl images`
25+
26+
- Open an interactive tty with Bourne shell (`sh`) inside a running container:
27+
28+
`nerdctl exec {{[-it|--interactive --tty]}} {{container_name}} sh`
29+
30+
- Remove stopped containers:
31+
32+
`nerdctl rm {{container1 container2 ...}}`
33+
34+
- Fetch and follow the logs of a container:
35+
36+
`nerdctl logs {{[-f|--follow]}} {{container_name}}`

0 commit comments

Comments
 (0)