MobileBackups folders interfering with Jenkins use of Docker slave

I’m trying to use the CloudBees Docker Custom Build Environment Plugin. Whether I tell it pull the evarga/jenkins-slave image from repository, or build from Dockerfile on my machine I receive the same error:

docker: Error response from daemon: Mounts denied: aces for more info.
.
olders/ns/ly6hv_513tl6qqslrb2vj_dw0000gn/T/
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namesp.
FATAL: Failed to run docker image

A grep of my system for ly6hv_513tl6qqslrb2vj_dw0000gn shows several directories /.MobileBackups/Computer/2016-12-01-081650/Volume/private/var/folders/ns/ly6hv_513tl6qqslrb2vj_dw0000gn. I know these files are associated with my Time Machine backup.

  • Docker compose error with docker-engine version
  • Configure Jenkins job to install Docker via ansible
  • Exposing a port other than 3000 with Express and Docker
  • Commandline arguments in docker-compose
  • docker updates AWS ELB ports
  • Docker app deployment hangs on Marathon, fails on Mesos
    • I added ./MobileBackups to File Sharing under Docker > Preferences > File Sharing. I’m still receiving the same error.

    • I tried adding /var to Docker > Preferences > File Sharing to receive a message The path /var is reserved by Docker.

    Any ideas?

    edit: Forgot to mention I’m on OSX Sierra, Jenkins 2.35, CloudBees Docker Custom Build Environment Plugin 1.6.5

  • I am trying to perform mvn install from Dockerfile but it is not working says mvn not found
  • what's the best way to use command line applications in a docker environment?
  • Can't run docker on os X with boot2docker
  • How do I run mysqld as root in the official MySql docker image?
  • Supervisor & Docker: How to exit Supervisor if a service doesn't start?
  • Infinite logging with logstash through kafka
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.