# 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`
""" Return the string to be used for running Docker commands. """
        return config.DOCKER_CMD
    def prepare_event(self, environment, event_body):
        """ Return the event as a stdin string. """
        
        environment['AWS_LAMBDA_EVENT_BODY'] = event_body
        return None
    def _execute(self, func_arn, func_details, event, context=None, version=None):
        lambda_cwd = func_details.cwd
        runtime = func_details.runtime
        handler = func_details.handler
        environment = func_details.envvars.copy()
        
        if config.USE_SSL:
            environment['USE_SSL'] = '1'
        
        if not event:
            LOG.warning('Empty event body specified for invocation of Lambda "%s"' % func_arn)
            event = {}
        event_body = json.dumps(json_safe(event))
        stdin = self.prepare_event(environment, event_body)
        docker_host = config.DOCKER_HOST_FROM_CONTAINER
        environment['HOSTNAME'] = docker_host
        environment['LOCALSTACK_HOSTNAME'] = docker_host