是的。Custom Container的监听端口(CAPort)默认是9000。如果Custom Container使用默认的监听端口,那么您实现的Custom Container 的HTTP Server监听的端口也必须是9000。 如果Custom Container使用的监听端口是8080,那么您实现的Custom Container的HTTP Server监听的端口也必须是8080。

Custom Container启动的HTTP Server一定要监听0.0.0.0:CAPort或*:CAPort端口。如果您使用127.0.0.1:CAPort端口,会导致请求超时,出现以下错误:
{
  "ErrorCode":"FunctionNotStarted",
  "ErrorMessage":"The CA's http server cannot be started:ContainerStartDuration:25000000000. Ping CA failed due to: dial tcp 21.0.5.7:9000: getsockopt: connection refused Logs : 2019-11-29T09:53:30.859837462Z Listening on port 9000"
}