From c22eeb219751c02c2ca18aff4fbd5890067f0eff Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Thu, 27 Oct 2016 11:25:43 +0800 Subject: [PATCH] Forbid duplicated namespaces with same `type`. Signed-off-by: Zhang Wei --- config-linux.md | 1 + 1 file changed, 1 insertion(+) diff --git a/config-linux.md b/config-linux.md index cdd868e04..6aeebb532 100644 --- a/config-linux.md +++ b/config-linux.md @@ -40,6 +40,7 @@ The following parameters can be specified to setup namespaces: If a path is specified, that particular file is used to join that type of namespace. If a namespace type is not specified in the `namespaces` array, the container MUST inherit the [runtime namespace](glossary.md#runtime-namespace) of that type. If a new namespace is not created (because the namespace type is not listed, or because it is listed with a `path`), runtimes MUST assume that the setup for that namespace has already been done and error out if the config specifies anything else related to that namespace. +If a `namespaces` field contains duplicated namespaces with same `type`, the runtime MUST error out. ###### Example