File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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}} `
You can’t perform that action at this time.
0 commit comments