native-thrift cannot run within docker instance since its impl *org.apache.dubbo.rpc.protocol.nativethrift.ThriftProtocol* doesn't honor *bind.host* and *bind.port*.

This limitation should apply to all *org.apache.dubbo.rpc.protocol.AbstractProxyProtocol*.

Pls. use https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-thrift to verify.
return null; 
                    }
                } catch (Exception e) {
                    logger.error(e.getMessage(), e);
                    throw new RpcException("Fail to create nativethrift server(" + url + ") : " + e.getMessage(), e);
                }
            } catch (Exception e) {
                logger.error(e.getMessage(), e);
                throw new RpcException("Fail to create nativethrift server(" + url + ") : " + e.getMessage(), e);
            }
        }
        if (tArgs == null) {
            logger.error("Fail to create nativethrift server(" + url + ") due to null args");
            throw new RpcException("Fail to create nativethrift server(" + url + ") due to null args");
        }
        final TServer thriftServer =  new TThreadedSelectorServer(tArgs);
        serverMap.put(url.getAddress(),thriftServer);
        new Thread(() -> {
            logger.info("Start Thrift ThreadedSelectorServer");
            thriftServer.serve();
            logger.info("Thrift ThreadedSelectorServer started.");
        }).start();
        return () -> {
            try {
                logger.info("Close Thrift NonblockingServer");
                thriftServer.stop();
            } catch (Throwable e) {
                logger.warn(e.getMessage(), e);
            }
        };