Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12911

Testcontainers-based tests do not run on Fedora 33

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.1.Final
    • 12.1.0.Final
    • Server, Test Suite
    • None

      Fedora enables SELinux for Docker by default, and SELinux prevents the Ryuk container from connecting to the Docker socket

      Pinging Docker...
      audit[36872]: AVC avc:  denied  { connectto } for  pid=36872 comm="app" path="/run/docker.sock" scontext=system_u:system_r:container_t:s0:c312,c321 tcontext=system_u:system_r:container_>
      panic: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/_ping: dial un>
      

      The Testcontainers documentation recommends enabling the ryuk.container.privileged property to get Ryuk working.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: