Options (3)
-a, --allbooleanList all containers (running and stopped)
Example:
nerdctl ps {{[-a|--all]}}booleanOpen an interactive tty with Bourne shell (`sh`) inside a running container
Example:
nerdctl exec {{[-it|--interactive --tty]}} {{container_name}} sh-f, --followbooleanFetch and follow the logs of a container
Example:
nerdctl logs {{[-f|--follow]}} {{container_name}}Examples (8)
Start a container from an image, with a custom name
nerdctl run --name container_name imageStart or stop an existing container
nerdctl start|stop container_namePull an image from a container registry
nerdctl pull imageDisplay the list of already downloaded images
nerdctl imagesOpen an interactive tty with Bourne shell (`sh`) inside a running container
Fetch and follow the logs of a container
nerdctl logs [-f|--follow] container_namemade by @shridhargupta | data from tldr-pages