From a99b7655cc296cebc9d8f7bc25e80a82ac11ab4c Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Wed, 9 Jan 2019 21:29:53 -0500 Subject: [PATCH] drivers/java: use libcontainer executor on java linux --- drivers/java/driver.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/java/driver.go b/drivers/java/driver.go index 23c09d627..9cd42d3eb 100644 --- a/drivers/java/driver.go +++ b/drivers/java/driver.go @@ -318,8 +318,9 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive pluginLogFile := filepath.Join(cfg.TaskDir().Dir, "executor.out") executorConfig := &executor.ExecutorConfig{ - LogFile: pluginLogFile, - LogLevel: "debug", + LogFile: pluginLogFile, + LogLevel: "debug", + FSIsolation: capabilities.FSIsolation == drivers.FSIsolationChroot, } exec, pluginClient, err := executor.CreateExecutor(os.Stderr, hclog.Debug, d.nomadConfig, executorConfig)