Skip to content

Commit

Permalink
fix: 'DockerKernel' object has no attribute 'network_driver'
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed Dec 22, 2024
1 parent 42b4030 commit 57604c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ai/backend/agent/docker/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def __getstate__(self):
return props

def __setstate__(self, props):
if "network_driver" not in props:
props["network_driver"] = "bridge"
super().__setstate__(props)

async def create_code_runner(
Expand Down

0 comments on commit 57604c3

Please sign in to comment.