mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-13 21:12:57 +00:00
Use formatted strings
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
This commit is contained in:
@@ -109,6 +109,7 @@ class TrackedContainer:
|
||||
return logs
|
||||
|
||||
def get_host_port(self, container_port: str) -> str:
|
||||
"""Returns the host port associated with the tracked container's port."""
|
||||
assert isinstance(self.container, Container)
|
||||
self.container.reload()
|
||||
return self.container.attrs["NetworkSettings"]["Ports"][container_port][0][
|
||||
|
Reference in New Issue
Block a user