# 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`
' lambci/lambda:%s'
                ) % (docker_cmd, container_name, env_vars_str, network_str, runtime)
                LOG.debug(cmd)
                run(cmd)
                LOG.debug('Copying files to container "%s" from "%s".' % (container_name, lambda_cwd))
                cmd = (
                    '%s cp'
                    ' "%s/." "%s:/var/task"'
                ) % (docker_cmd, lambda_cwd, container_name)
                LOG.debug(cmd)
                run(cmd)
                LOG.debug('Starting container: %s' % container_name)
                cmd = '%s start %s' % (docker_cmd, container_name)
                LOG.debug(cmd)
                run(cmd)
                
                time.sleep(1)
            
            LOG.debug('Getting the entrypoint for image: lambci/lambda:%s' % runtime)
            cmd = (
                '%s image inspect'
                ' --format="{{ .ContainerConfig.Entrypoint }}"'
                ' lambci/lambda:%s'
            ) % (docker_cmd, runtime)
            LOG.debug(cmd)
            run_result = run(cmd)
            entry_point = run_result.strip('[]\n\r ')
            container_network = self.get_docker_container_network(func_arn)
            LOG.debug('Using entrypoint "%s" for container "%s" on network "%s".'
                % (entry_point, container_name, container_network))