mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-05-20 08:19:33 +00:00
test: get attached primary IP
This commit is contained in:
parent
a9307874c8
commit
f5f9f8e1b8
@ -62,9 +62,12 @@ class DockerManager:
|
|||||||
network=NETWORK_NAME,
|
network=NETWORK_NAME,
|
||||||
)
|
)
|
||||||
|
|
||||||
network = self._client.networks.get(NETWORK_NAME)
|
# network = self._client.networks.get(NETWORK_NAME)
|
||||||
logger.debug(f"docker network connect --ip {container_ip} {NETWORK_NAME} {container.id}")
|
# logger.debug(f"docker network connect --ip {container_ip} {NETWORK_NAME} {container.id}")
|
||||||
network.connect(container, ipv4_address=container_ip)
|
# network.connect(container, ipv4_address=container_ip)
|
||||||
|
|
||||||
|
attached_ip = container.attrs["NetworkSettings"]["IPAddress"]
|
||||||
|
logger.debug(f"Container started with IP {attached_ip}")
|
||||||
|
|
||||||
logger.debug(f"Container started with ID {container.short_id}. Setting up logs at {log_path}")
|
logger.debug(f"Container started with ID {container.short_id}. Setting up logs at {log_path}")
|
||||||
log_thread = threading.Thread(target=self._log_container_output, args=(container, log_path))
|
log_thread = threading.Thread(target=self._log_container_output, args=(container, log_path))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user