test: get all container attributes

This commit is contained in:
Roman 2025-01-07 20:31:00 +08:00
parent f5f9f8e1b8
commit 5746748581
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -66,8 +66,8 @@ class DockerManager:
# logger.debug(f"docker network connect --ip {container_ip} {NETWORK_NAME} {container.id}")
# network.connect(container, ipv4_address=container_ip)
attached_ip = container.attrs["NetworkSettings"]["IPAddress"]
logger.debug(f"Container started with IP {attached_ip}")
attrs = container.attrs
logger.debug(f"Container started with attributes {attrs}")
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))