Only allow tmpfs on v2.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
28120148f4
commit
be1476f24b
3 changed files with 8 additions and 4 deletions
|
|
@ -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 == [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue