mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
sudo docker works
This commit is contained in:
@@ -94,6 +94,14 @@ func testConfig(t *testing.T) *config.Config {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Give the directories access to everyone
|
||||
if err := os.Chmod(p1, 0777); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := os.Chmod(p2, 0777); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
conf.StateDir = p1
|
||||
conf.AllocDir = p2
|
||||
conf.MaxKillTimeout = 10 * time.Second
|
||||
|
||||
Reference in New Issue
Block a user