def METHOD_NAME(docker_base_name, tag, runtime_config):
    try:
        command = (
            "docker run {}--name sagemaker-tensorflow-serving-test -p 8080:8080"
            " --mount type=volume,source=nginx_model_volume,target=/opt/ml/model,readonly"
            " -e SAGEMAKER_NGINX_PROXY_READ_TIMEOUT_SECONDS=60"
            " -e SAGEMAKER_GUNICORN_TIMEOUT_SECONDS=120"
            " {}:{} serve"
        ).format(runtime_config, docker_base_name, tag)
        proc = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        lines_seen = {
            "proxy_read_timeout 120;": 0,  # When GUnicorn is higher, set timeout to match.
        }
        for stdout_line in iter(proc.stdout.readline, ""):
            stdout_line = str(stdout_line)
            for line in lines_seen.keys():
                if line in stdout_line:
                    lines_seen[line] += 1
            if "started nginx" in stdout_line:
                for value in lines_seen.values():
                    assert value == 1
                break
    finally:
        subprocess.check_call("docker rm -f sagemaker-tensorflow-serving-test".split())