Don't preserve host volumes on container recreate.
Fixes a regression after the API changed to use Mounts. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
c64b7cbb10
commit
97fe2ee40c
3 changed files with 27 additions and 9 deletions
|
|
@ -234,6 +234,7 @@ class ServiceTest(unittest.TestCase):
|
|||
prev_container = mock.Mock(
|
||||
id='ababab',
|
||||
image_config={'ContainerConfig': {}})
|
||||
prev_container.get.return_value = None
|
||||
|
||||
opts = service._get_container_create_options(
|
||||
{},
|
||||
|
|
@ -575,6 +576,10 @@ class NetTestCase(unittest.TestCase):
|
|||
self.assertEqual(net.service_name, service_name)
|
||||
|
||||
|
||||
def build_mount(destination, source, mode='rw'):
|
||||
return {'Source': source, 'Destination': destination, 'Mode': mode}
|
||||
|
||||
|
||||
class ServiceVolumesTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue