5.6. Starting containers
If you run the container and then stop it, and not remove it, the container is stored on your local system ready to run again. You can use the podman start command to re-run the containers. You can specify the containers by their container ID or name.
Prerequisites
-
The
container-toolsmeta-package is installed. - At least one container has been stopped.
Procedure
Start the
myubicontainer:In the non interactive mode:
$ podman start myubiAlternatively, you can use
podman start 1984555a2c27.In the interactive mode, use
-a(--attach) and-i(--interactive) options to work with container bash shell:$ podman start -a -i myubiAlternatively, you can use
podman start -a -i 1984555a2c27.
Enter
exitto exit the container and return to the host:[root@6ccffd0f6421 /]# exitFor more information, see the
podman-start(1)man page on your system.