jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-36802] Unit tests using Docker Pipeline on OS X don't work

Open
#426 2 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

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.

---
Originally reported by abayer, imported from: Unit tests using Docker Pipeline on OS X don't work


  • assignee: jglick
  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • label(s): mac, testing
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-07

Raw content of original issue

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.