mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:53:34 +02:00
nerdctl: add page (#17683)
* nerdctl: add page Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
parent
58e8d8fcb8
commit
8ceec9c823
1 changed files with 36 additions and 0 deletions
36
pages/linux/nerdctl.md
Normal file
36
pages/linux/nerdctl.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# nerdctl
|
||||
|
||||
> Docker-compatible CLI for containerd.
|
||||
> More information: <https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md>.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue