added second option to get container's id
This commit is contained in:
parent
e8b8646a4e
commit
270c2b97fc
|
@ -123,6 +123,12 @@ def get_docker_id():
|
|||
if index != -1:
|
||||
id = line[index+7:-6]
|
||||
break
|
||||
index = line.find('docker/')
|
||||
if index != -1:
|
||||
id = line[index+7:]
|
||||
break
|
||||
if id == '':
|
||||
logging.error('could not determine container\'s id!')
|
||||
return id
|
||||
|
||||
def get_listen_ips():
|
||||
|
|
Loading…
Reference in New Issue