File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -128,13 +128,12 @@ def get_child_process_ids(pid):
128
128
return pids + get_child_process_ids (child_pid )
129
129
else :
130
130
return []
131
-
131
+
132
132
def get_docker_host ():
133
- """Discover remote docker host address (if applicable) or use "localhost"
134
-
133
+ """Discover remote docker host address (if applicable) or use "localhost"
135
134
Use "docker context inspect" to read current docker host endpoint url
136
135
url must start with "tcp://"
137
-
136
+
138
137
Args:
139
138
140
139
Returns:
@@ -144,4 +143,4 @@ def get_docker_host():
144
143
docker_context_host_url = json .loads (docker_context_string )[0 ]['Endpoints' ]['docker' ]['Host' ]
145
144
parsed_url = urlparse (docker_context_host_url )
146
145
docker_host = parsed_url .hostname if parsed_url .hostname and parsed_url .scheme == "tcp" else "localhost"
147
- return docker_host
146
+ return docker_host
You can’t perform that action at this time.
0 commit comments