Hi, thanks for your report. I have found the cause.
We defines all container names of services in simulation mode as
`xxx-sgx-sim-mode` (e.g., `teaclave-storage-service-sgx-sim-mode`). Therefore,
to start the services in sim mode using docker compose. You have to change the
`docker/runtime.config.toml` file accordingly by adding the `-sgx-sim-mode`
suffix.
Change the `docker/runtime.config.toml` file from:
```
authentication = { listen_address = "0.0.0.0:17776", advertised_address =
"teaclave-authentication-service:17776" }
management = { listen_address = "0.0.0.0:17777", advertised_address =
"teaclave-management-service:17777" }
storage = { listen_address = "0.0.0.0:17778", advertised_address =
"teaclave-storage-service:17778" }
access_control = { listen_address = "0.0.0.0:17779", advertised_address =
"teaclave-access-control-service:17779" }
execution = { listen_address = "0.0.0.0:17770", advertised_address =
"teaclave-execution-service:17770" }
scheduler = { listen_address = "0.0.0.0:17780", advertised_address =
"teaclave-scheduler-service:17780" }
```
to
```
authentication = { listen_address = "0.0.0.0:17776", advertised_address =
"teaclave-authentication-service-sgx-sim-mode:17776" }
management = { listen_address = "0.0.0.0:17777", advertised_address =
"teaclave-management-service-sgx-sim-mode:17777" }
storage = { listen_address = "0.0.0.0:17778", advertised_address =
"teaclave-storage-service-sgx-sim-mode:17778" }
access_control = { listen_address = "0.0.0.0:17779", advertised_address =
"teaclave-access-control-service-sgx-sim-mode:17779" }
execution = { listen_address = "0.0.0.0:17770", advertised_address =
"teaclave-execution-service-sgx-sim-mode:17770" }
scheduler = { listen_address = "0.0.0.0:17780", advertised_address =
"teaclave-scheduler-service-sgx-sim-mode:17780" }
```
Then, services in docker can resolve IPs with these advertised addresses.
--
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/495#issuecomment-815347102