一个解决方法是修改 docker compose 文件: ```patch diff --git a/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml b/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml index aa5388d..b0f25aa 100644 --- a/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml +++ b/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml @@ -134,6 +134,7 @@ services: - teaclave-scheduler-service networks: internal: + fs:
teaclave-scheduler-service-sgx-sim-mode: build: @@ -157,6 +158,16 @@ services: networks: internal: + teaclave-file-service: + image: python:3 + volumes: + - ../tests:/teaclave-file-service + working_dir: /teaclave-file-service + entrypoint: ./scripts/simple_http_server.py + networks: + fs: + networks: internal: api: + fs: ``` service 启动后找到 teaclave-file-service 的名字: ``` $ docker ps docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8f41f56016d9 python:3 "./scripts/simple_ht…" 4 minutes ago Up 4 minutes 6789/tcp docker_teaclave-file-service_1 ``` 修改在 example 的文件地址为:```http://docker_teaclave-file-service_1:5678/xxxxxx``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/issues/444#issuecomment-745706174