To support docker_image / docker hooks with podman as backend and without any wrapper scripts, Docker python library (which uses the api) could be used instead of running the executables with subprocess.
This would simplify the workflow with podman, since currently these hooks require either actual docker binaries present (which are connecting to the podman api) or wrapping the podman executable with a docker alias/shell wrapper/etc.
This could also help with the error messages, since errors thrown from the api when launching the container are separate from the return code of the container.
Activity
asottile commented on Feb 24, 2023
can't take on that dependency -- it's been a constant thorn in my side in the past