def METHOD_NAME(ctx, binary, skip_cleanup=False):
    """
    Run a go test in a remote docker environment and pipe its output to stdout.
    Host and target systems must be identical (test is built on the host).
    """
    import docker
    client = docker.from_env()
    temp_folder = tempfile.mkdtemp(prefix="ddtest-")
    ctx.run(f"cp {binary} {temp_folder}/test.bin")
    with open(f"{temp_folder}/Dockerfile", 'w') as stream:
        stream.write(
            """FROM docker/compose:debian-1.29.2