# Steps to reproduce

* Run `localstack` with `LAMBDA_EXECUTOR=docker` and `LAMBDA_REMOTE_DOCKER=true`.
* Create and execute multiple lambda functions.
* Run `docker ps -a` and observe multiple `lambci` containers

This does not happen with `LAMBDA_EXECUTOR=docker-reuse` or with `LAMBDA_REMOTE_DOCKER=true`
self.function_invoke_times = {}
        self.debug_java_port = get_free_tcp_port()
    def execute(self, func_arn, func_details, event, context=None, version=None, asynchronous=False):
        def do_execute(*args):
            
            invocation_time = int(time.time() * 1000)
            
            try:
                result, log_output = self._execute(func_arn, func_details, event, context, version)
            finally:
                self.function_invoke_times[func_arn] = invocation_time
            
            self._store_logs(func_details, log_output, invocation_time)
            
            return result, log_output
        
        if asynchronous:
            LOG.debug('Lambda executed in Event (asynchronous) mode, no response from this '
                      'function will be returned to caller')
            FuncThread(do_execute).start()
            return None, 'Lambda executed asynchronously.'
        return do_execute()
    def _execute(self, func_arn, func_details, event, context=None, version=None):