Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36802

Unit tests using Docker Pipeline on OS X don't work

XMLWordPrintable

      Trying to run unit tests that run Docker Pipeline on OS X with Docker for Mac, I get errors like:

      java.io.IOException: Failed to run image 'httpd:2.4.12'. Error: docker: Error response from daemon: Mounts denied: he system.
      You can configure shared paths from Docker -> Preferences...
      .
      0948921938454756test/workspace/p and /var/folders/pr/24nv8g910wg8vr4b4c33q34r0000gn/T/hudson4310948921938454756test/workspace/p@tmp
      are not shared from OS X and do not belong to t.
      

      Wonderful error message, that. =)

      The specific problem seems to be that since /var is a symlink to /private/var and both /private and / are set up in the Docker for Mac preferences to allow file sharing, /var still isn't allowed. This is...annoying.

            jglick Jesse Glick
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: