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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Not sure I followed that.

          Show
          jglick Jesse Glick added a comment - Not sure I followed that.
          Hide
          rodrigc Craig Rodrigues added a comment -

          Andrew Bayer I encountered the same problem.  I installed Jenkins via Homebrew on Mac:

           

          brew install jenkins

          Then I ran Jenkins under the root user ID.

           
          java.io.IOException: Failed to run image 'myimage:2'. Error: docker: Error response from daemon: Mounts denied: ://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
          .
          root/.jenkins/workspace/myjob@tmp
           

          Can you provide details for how you worked around the problem?

          Thanks.

          Show
          rodrigc Craig Rodrigues added a comment - Andrew Bayer I encountered the same problem.  I installed Jenkins via Homebrew on Mac:   brew install jenkins Then I ran Jenkins under the root user ID.   java.io.IOException: Failed to run image 'myimage:2'. Error: docker: Error response from daemon: Mounts denied: ://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. . root/.jenkins/workspace/myjob@tmp   Can you provide details for how you worked around the problem? Thanks.

            People

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

              Dates

              • Created:
                Updated: