0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OpenHandsでruntimeコンテナからホストのサービスに接続したい

Posted at

v0.4.5にて

services:
  openhands:
    image: docker.all-hands.dev/all-hands-ai/openhands:0.45
    environment: 
      - SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.45-nikolaik
      - SANDBOX_DOCKER_RUNTIME_KWARGS={'extra_hosts':{'host.docker.internal':'host-gateway'}}
      - LOG_ALL_EVENTS=true
    restart: always      
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - ./openhands:/.openhands
    ports:
    - 3000:3000
    extra_hosts:
    - host.docker.internal:host-gateway

- SANDBOX_DOCKER_RUNTIME_KWARGS={'extra_hosts':{'host.docker.internal':'host-gateway'}} をenvironmentに追記する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?