Only allow tmpfs on v2.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-03-21 14:41:28 -04:00
commit be1476f24b
3 changed files with 8 additions and 4 deletions

View file

@ -1196,9 +1196,12 @@ class ConfigTest(unittest.TestCase):
def test_tmpfs_option(self):
actual = config.load(build_config_details({
'web': {
'image': 'alpine',
'tmpfs': '/run',
'version': '2',
'services': {
'web': {
'image': 'alpine',
'tmpfs': '/run',
}
}
}))
assert actual.services == [