skyvern icon indicating copy to clipboard operation
skyvern copied to clipboard

Support podman as alternative of docker

Open yaput opened this issue 1 month ago • 6 comments

Hi team,

Would like to request to support podman as alternative of docker, since my system is using podman now. I would like to contribute as well if needed, but from what I noticed, I can modify

def check_docker() -> bool:
    """Check if Docker is installed and running."""
    try:
        result = subprocess.run(
            ["docker", "info"],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
        return result.returncode == 0
    except (FileNotFoundError, subprocess.SubprocessError):
        return False

to something more generic maybe?

def check_container(provider: str) -> bool:
    """Check if Docker is installed and running."""
    try:
        result = subprocess.run(
            [provider, "info"],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
        return result.returncode == 0
    except (FileNotFoundError, subprocess.SubprocessError):
        return False

Or maybe it is not as simple as this? Kindly let me know if it is possible. Thank you!

yaput avatar Nov 20 '25 07:11 yaput

@yaput we are definitely interested in contributions here. I'm not a huge fan of docker - it's very heavy

suchintan avatar Nov 21 '25 06:11 suchintan

@suchintan thanks, I'll try to test it on my local first. Newb question, is there any docs to run this from source code on our local? Yep, I use any open source that can substitute docker usually XD

yaput avatar Nov 21 '25 06:11 yaput