defrecord / anthropic-quickstarts

A collection of projects designed to help developers quickly get started with building deployable applications using the Anthropic API
MIT License
3 stars 0 forks source link

Issue: Resolve Port Mapping Through Enclave to Host #2

Closed jwalsh closed 3 weeks ago

jwalsh commented 3 weeks ago

Description:

Currently, the computer-use-demo-latest application running within the nested Docker environment (Enclave) is not accessible from the host machine. This is likely due to incorrect port mapping or network configuration.

Steps to Reproduce:

  1. Build and run the Enclave container using the following command:
docker run -it --net=host --privileged -it \
    -v $HOME/.anthropic:/root/.anthropic \
    -p 8080:8080 -p 8501:8501 -p 5900:5900 -p 6080:6080 \
    docker:dind \
    docker run -it \
        -v /root/.anthropic:/home/computeruse/.anthropic \
        -p 8080:8080 -p 8501:8501 -p 5900:5900 -p 6080:6080 \
        ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest
  1. Attempt to access the application from the host machine using the mapped ports (e.g., http://localhost:8080).

Expected Result:

The application should be accessible from the host machine through the mapped ports.

Actual Result:

The application is not accessible from the host machine.

Possible Causes:

Proposed Solution:

Additional Notes:

Priority: High

Assigned To: [Assign to the appropriate developer]

Status: Open