Tuesday, June 23, 2020

podman commit - saving a container state

1. Look for the container ID
$ podman ps 
CONTAINER ID   IMAGE                                                                    COMMAND   
6987b050a32e         registry.fedoraproject.org/fedora:32                        /bin/bash
b71273d505f4         localhost/crio-build-debian10-golang-1-14:latest    /bin/bash

2. Commit/Save the current state
$ podman commit b71273d505f4 crio-build-debian10-golang-1-14

3. Now when executing the container just start with exec -it ${container id}
$ podman exec -it b71273d505f4 /bin/bash

No comments:

Post a Comment