Skip to content

Commit

Permalink
Handle docker critical error on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Feb 25, 2024
1 parent 7e41e6e commit 98d26fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exegol/model/ExegolContainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def __start_container(self):
"""
with console.status(f"Waiting to start {self.name}", spinner_style="blue") as progress:
start_date = datetime.utcnow()
self.__container.start()
try:
self.__container.start()
except APIError as e:
logger.debug(e)
logger.critical(f"Docker raise a critical error when starting the container [green]{self.name}[/green], error message is: {e.explanation}")
if not self.config.legacy_entrypoint: # TODO improve startup compatibility check
try:
# Try to find log / startup messages. Will time out after 2 seconds if the image don't support status update through container logs.
Expand Down

0 comments on commit 98d26fa

Please sign in to comment.