Skip to content

Commit

Permalink
fix(builder): Build the runtime with docker version that contains (-)…
Browse files Browse the repository at this point in the history
… in the version name (All-Hands-AI#4580)
  • Loading branch information
msehsah1 authored Oct 27, 2024
1 parent 5ba7bc6 commit 2a6740f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhands/runtime/builder/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, docker_client: docker.DockerClient):
self.docker_client = docker_client

version_info = self.docker_client.version()
server_version = version_info.get('Version', '')
server_version = version_info.get('Version', '').replace('-', '.')
if tuple(map(int, server_version.split('.'))) < (18, 9):
raise RuntimeError('Docker server version must be >= 18.09 to use BuildKit')

Expand Down Expand Up @@ -53,7 +53,7 @@ def build(
"""
self.docker_client = docker.from_env()
version_info = self.docker_client.version()
server_version = version_info.get('Version', '')
server_version = version_info.get('Version', '').replace('-', '.')
if tuple(map(int, server_version.split('.'))) < (18, 9):
raise RuntimeError('Docker server version must be >= 18.09 to use BuildKit')

Expand Down

0 comments on commit 2a6740f

Please sign in to comment.