Testcontainers is a library that starts your test dependencies in a container and stop them after you are done using them. Testcontainers needs Docker socket access for mounting within its reaper, so I made a (for now minimal) different library that does not need Docker socket access. It also works with daemonless Podman.

  • akash_rawal@lemmy.worldOP
    link
    fedilink
    arrow-up
    7
    ·
    18 days ago

    Testcontainers uses ‘ryuk’ to clean up containers and it needs docker socket mounted within its container to work. So if you had any hardening config that prevents the docker socket access within a container e.g user namespace or SELinux then Testcontainers doesn’t work.

    And I think it would be nice if Testcontainers ‘just worked’ with Podman without any additional steps.