mirror of https://github.com/docker/compose.git
Remove superfluous service code
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
46585fb8e1
commit
c32991a8d4
|
@ -510,13 +510,6 @@ class Service(object):
|
|||
|
||||
return volumes_from
|
||||
|
||||
def get_logging_options(self):
|
||||
logging_dict = self.options.get('logging', {})
|
||||
return {
|
||||
'log_driver': logging_dict.get('driver', ""),
|
||||
'log_opt': logging_dict.get('options', None)
|
||||
}
|
||||
|
||||
def _get_container_create_options(
|
||||
self,
|
||||
override_options,
|
||||
|
@ -530,8 +523,6 @@ class Service(object):
|
|||
for k in DOCKER_CONFIG_KEYS if k in self.options)
|
||||
container_options.update(override_options)
|
||||
|
||||
container_options.update(self.get_logging_options())
|
||||
|
||||
if self.custom_container_name() and not one_off:
|
||||
container_options['name'] = self.custom_container_name()
|
||||
elif not container_options.get('name'):
|
||||
|
|
Loading…
Reference in New Issue