> 一个解决方法是修改 docker compose 文件:
> 
> ```diff
> 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`

wget http://docker_teaclave-file-service_1:6789
--2020-12-16 10:22:58-- http://docker_teaclave-file-service_1:6789/
Resolving docker_teaclave-file-service_1 (docker_teaclave-file-service_1)... 
failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘docker_teaclave-file-service_1’

docker_teaclave-file-service_1解析不了

镜像
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
03f3fa28793c docker_teaclave-scheduler-service "./teaclave_schedule…" 32 
minutes ago Up 32 minutes 17780/tcp teaclave-scheduler-service
3ec63834b9d1 python:3 "./scripts/simple_ht…" 32 minutes ago Up 14 minutes 
docker_teaclave-file-service_1

-- 
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-745721253

Reply via email to