f8a65a3b9d
* In -dev mode, `ioutil.TempDir` is used for the alloc and state directories. * `TempDir` uses `$TMPDIR`, which os OS X contains a per user directory which is under `/var/folder`. * `/var` is actually a symlink to `/private/var` * Docker For Mac validates the directories that are passed to bind and on OS X. That whitelist contains `/private`, but not `/var`. It does not expand the path, and so any paths in `$TMPDIR` fail the whitelist check. And thusly, by expanding the alloc/state directories the value passed for binding does contain `/private` and Docker For Mac is happy. |
||
---|---|---|
.. | ||
allocdir | ||
config | ||
driver | ||
fingerprint | ||
getter | ||
stats | ||
structs | ||
testutil | ||
vaultclient | ||
alloc_runner.go | ||
alloc_runner_test.go | ||
client.go | ||
client_test.go | ||
consul_template.go | ||
consul_template_test.go | ||
restarts.go | ||
restarts_test.go | ||
serverlist.go | ||
serverlist_test.go | ||
task_runner.go | ||
task_runner_test.go | ||
util.go | ||
util_test.go |