jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-36802] Unit tests using Docker Pipeline on OS X don't work
- 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
jglick
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
Assessment
This issue has not been assessed yet.