Source code for paks.backends.podman
__author__ = "Vanessa Sochat, Alec Scott"
__copyright__ = "Copyright 2021-2022, Vanessa Sochat and Alec Scott"
__license__ = "Apache-2.0"
from .docker import DockerContainer
import os
[docs]class PodmanContainer(DockerContainer):
"""
A Podman container controller, which is the same as Docker.
"""
command = "podman"
[docs] def shell(self, image):
"""
Interactive shell into a container image.
"""
os.system(
"podman run -it --rm --entrypoint %s %s"
% (self.settings.podman_shell, image)
)