diff options
author | Anca Iordache <anca.iordache@docker.com> | 2021-04-13 16:11:34 +0200 |
---|---|---|
committer | Anca Iordache <anca.iordache@docker.com> | 2021-04-13 16:47:42 +0200 |
commit | 3ba41b98d32cd2318eaab29736aacf88d938e8bc (patch) | |
tree | 4878bf77cdbe4cd20a8a5b44255aff3911f5ab55 | |
parent | 3eee3e093a987be294205fe9cf9907173cb27034 (diff) |
Add Ipc mode to the config hash
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
-rw-r--r-- | compose/service.py | 1 | ||||
-rw-r--r-- | tests/unit/service_test.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/compose/service.py b/compose/service.py index 1436b2da..fefddfce 100644 --- a/compose/service.py +++ b/compose/service.py @@ -731,6 +731,7 @@ class Service: 'image_id': image_id(), 'links': self.get_link_names(), 'net': self.network_mode.id, + 'ipc_mode': self.ipc_mode.mode, 'networks': self.networks, 'secrets': self.secrets, 'volumes_from': [ diff --git a/tests/unit/service_test.py b/tests/unit/service_test.py index 72cb1d7f..8a51c978 100644 --- a/tests/unit/service_test.py +++ b/tests/unit/service_test.py @@ -330,7 +330,7 @@ class ServiceTest(unittest.TestCase): assert service.options['environment'] == environment assert opts['labels'][LABEL_CONFIG_HASH] == \ - '689149e6041a85f6fb4945a2146a497ed43c8a5cbd8991753d875b165f1b4de4' + '6da0f3ec0d5adf901de304bdc7e0ee44ec5dd7adb08aebc20fe0dd791d4ee5a8' assert opts['environment'] == ['also=real'] def test_get_container_create_options_sets_affinity_with_binds(self): @@ -700,6 +700,7 @@ class ServiceTest(unittest.TestCase): config_dict = service.config_dict() expected = { 'image_id': 'abcd', + 'ipc_mode': None, 'options': {'image': 'example.com/foo'}, 'links': [('one', 'one')], 'net': 'other', @@ -723,6 +724,7 @@ class ServiceTest(unittest.TestCase): config_dict = service.config_dict() expected = { 'image_id': 'abcd', + 'ipc_mode': None, 'options': {'image': 'example.com/foo'}, 'links': [], 'networks': {}, |