Remove /run mount for backward compatibility with docker.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-09-09 07:34:00 +00:00
parent 159fa903cf
commit 0bfcdd39ab
3 changed files with 30 additions and 2 deletions

View File

@@ -555,3 +555,11 @@ func TestPidNamespace(t *testing.T) {
Type: runtimespec.PIDNamespace,
})
}
func TestDefaultRuntimeSpec(t *testing.T) {
spec, err := defaultRuntimeSpec()
assert.NoError(t, err)
for _, mount := range spec.Mounts {
assert.NotEqual(t, "/run", mount.Destination)
}
}