add support of DOCKER_HOST_ADDR #7593
Merged
+6
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
End-user friendly description of the problem this fixes or functionality that this introduces.
Give a summary of what the PR does, explaining any non-trivial design decisions.
This pull request includes changes to the
openhands/runtime/impl/docker/docker_runtime.py
file to enhance the configuration of the Docker runtime by allowing the use of an environment variable for the Docker host address.Configuration enhancements:
os
module to handle environment variables.__init__
method to set thelocal_runtime_url
configuration using theDOCKER_HOST_ADDR
environment variable if it is present.Mainly used for supporting some Docker-in-Docker issue when doing large-scale evaluation. Note that simply using
DOCKER_HOST
env var cannot enable the routing of runtime correctly.Link of any specific issues this addresses.
#7568