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.
super(exceptions);
    }
    private <T> Runnable exportThreadedSelectorServer(T impl, Class<T> type, URL url) throws RpcException {
        TThreadedSelectorServer.Args tArgs = null;
        String typeName = type.getName();
        if (typeName.endsWith(THRIFT_IFACE)) {
            String processorClsName = typeName.substring(0, typeName.indexOf(THRIFT_IFACE)) + THRIFT_PROCESSOR;
            try {
                Class<?> clazz = Class.forName(processorClsName);
                Constructor constructor = clazz.getConstructor(type);
                try {
                    TProcessor tprocessor = (TProcessor) constructor.newInstance(impl);
                    processor.registerProcessor(typeName,tprocessor);
                    if(serverMap.get(url.getAddress()) == null) {
                        
                        TNonblockingServerSocket.NonblockingAbstractServerSocketArgs args = new TNonblockingServerSocket.NonblockingAbstractServerSocketArgs();
                        
                        args.backlog(1000);
                        args.bindAddr(new InetSocketAddress(url.getHost(), url.getPort()));
                        
                        args.clientTimeout(10000);
                        TNonblockingServerSocket transport = new TNonblockingServerSocket(args);
                        tArgs = new TThreadedSelectorServer.Args(transport);
                        tArgs.workerThreads(200);
                        tArgs.selectorThreads(4);
                        tArgs.acceptQueueSizePerThread(256);
                        tArgs.processor(processor);
                        tArgs.transportFactory(new TFramedTransport.Factory());
                        tArgs.protocolFactory(new TCompactProtocol.Factory());
                    }else{