Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bblfsh/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
def ensure_bblfsh_is_running():
client = docker.from_env(version="auto")
try:
client.containers.get("bblfsh")
container = client.containers.get("bblfsh")
if container.status != "running":
raise docker.errors.NotFound()
return True
except docker.errors.NotFound:
container = client.containers.run(
Expand Down