Skip to content

Commit b00c872

Browse files
committed
update shell; add logging for image pulling before starting container
1 parent b92d9db commit b00c872

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

argus/tools/shell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def _ensure_shell(self) -> pexpect.spawn:
6565

6666
# Start container if needed
6767
if self._container is None:
68+
logger.info("Pulling image %s (may take a while)", self.image)
69+
self._client.images.pull(self.image)
6870
logger.info("Starting container from image %s", self.image)
6971
self._container = self._client.containers.run(
7072
self.image,

0 commit comments

Comments
 (0)