# 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`
import os
import re
import json
import time
import logging
import threading
import subprocess
from localstack.utils.common import (
    get_free_tcp_port)
from multiprocessing import Process, Queue
try:
    from shlex import quote as cmd_quote
except ImportError: