Skip to content

Commit

Permalink
fix: return false on is_docker_rootless if docker is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
moonesque committed Jan 6, 2024
1 parent c17e2ee commit 6451354
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tutor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def is_docker_rootless() -> bool:
return "rootless" in results.stdout.decode()
except subprocess.CalledProcessError:
return False
# if tutor is being called in docker containers, it will not have access to docker as it is not installed
except FileNotFoundError:
return False


def docker_compose(*command: str) -> int:
Expand Down

0 comments on commit 6451354

Please sign in to comment.