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
- Start a container from an image, with a custom name:
nerdctl run --name
- Start or stop an existing container:
nerdctl
- Pull an image from a container registry:
nerdctl pull
- Display the list of already downloaded images:
nerdctl images
- Open an interactive tty with Bourne shell (
sh) inside a running container:
nerdctl exec sh
- Remove stopped containers:
nerdctl rm
- Fetch and follow the logs of a container:
nerdctl logs
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
