sudo docker works

This commit is contained in:
Alex Dadgar 2017-10-18 14:01:45 -07:00
parent 805e7b3b62
commit 55a1dffa2f
1 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,14 @@ func testConfig(t *testing.T) *config.Config {
t.Fatal(err) 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.StateDir = p1
conf.AllocDir = p2 conf.AllocDir = p2
conf.MaxKillTimeout = 10 * time.Second conf.MaxKillTimeout = 10 * time.Second