skyvern
skyvern copied to clipboard
Support podman as alternative of docker
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 we are definitely interested in contributions here. I'm not a huge fan of docker - it's very heavy
@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