summaryrefslogtreecommitdiff
path: root/compose
diff options
context:
space:
mode:
Diffstat (limited to 'compose')
-rw-r--r--compose/config/config.py1
-rw-r--r--compose/config/config_schema_v2.1.json1
-rw-r--r--compose/config/config_schema_v3.0.json1
-rw-r--r--compose/service.py4
4 files changed, 6 insertions, 1 deletions
diff --git a/compose/config/config.py b/compose/config/config.py
index ca8de309..94e4f76c 100644
--- a/compose/config/config.py
+++ b/compose/config/config.py
@@ -88,6 +88,7 @@ DOCKER_CONFIG_KEYS = [
'stop_signal',
'tty',
'user',
+ 'userns_mode',
'volume_driver',
'volumes',
'volumes_from',
diff --git a/compose/config/config_schema_v2.1.json b/compose/config/config_schema_v2.1.json
index 3561a8cf..b5d614d6 100644
--- a/compose/config/config_schema_v2.1.json
+++ b/compose/config/config_schema_v2.1.json
@@ -217,6 +217,7 @@
}
},
"user": {"type": "string"},
+ "userns_mode": {"type": "string"},
"volumes": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"volume_driver": {"type": "string"},
"volumes_from": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
diff --git a/compose/config/config_schema_v3.0.json b/compose/config/config_schema_v3.0.json
index 4edd8dd4..8b8ceac0 100644
--- a/compose/config/config_schema_v3.0.json
+++ b/compose/config/config_schema_v3.0.json
@@ -192,6 +192,7 @@
}
},
"user": {"type": "string"},
+ "userns_mode": {"type": "string"},
"volumes": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"working_dir": {"type": "string"}
},
diff --git a/compose/service.py b/compose/service.py
index c32788fe..a11d3fa4 100644
--- a/compose/service.py
+++ b/compose/service.py
@@ -64,6 +64,7 @@ DOCKER_START_KEYS = [
'restart',
'security_opt',
'shm_size',
+ 'userns_mode',
'volumes_from',
]
@@ -720,7 +721,8 @@ class Service(object):
tmpfs=options.get('tmpfs'),
oom_score_adj=options.get('oom_score_adj'),
mem_swappiness=options.get('mem_swappiness'),
- group_add=options.get('group_add')
+ group_add=options.get('group_add'),
+ userns_mode=options.get('userns_mode')
)
# TODO: Add as an argument to create_host_config once it's supported