def test_dood(python_testcontainer_image: str) -> None:
    """
    Run tests marked as inside_docker_check inside docker out of docker
    """

    docker_sock = tcc.ryuk_docker_socket
    with Network() as network:
        with (
            DockerContainer(
                image=python_testcontainer_image,
            )
            .with_command("poetry run pytest -m inside_docker_check")
            .with_volume_mapping(docker_sock, docker_sock, "rw")
            # test also that the correct network was found
            # but only do this if not already inside a container
            # as there for some reason this doesn't work
            .with_env(EXPECTED_NETWORK_VAR, "" if inside_container() else network.name)
            .with_env("RYUK_RECONNECTION_TIMEOUT", "1s")
            .with_network(network)
        ) as container:
            status = container.get_wrapped_container().wait()
            stdout, stderr = container.get_logs()
            # ensure ryuk removed the containers created inside container
            # because they are bound our network the deletion of the network
            # would fail otherwise
            time.sleep(1.1)

    # Show what was done inside test
    with print_surround_header("test_dood results"):
        print(stdout.decode("utf-8", errors="replace"))
        print(stderr.decode("utf-8", errors="replace"))
    assert status["StatusCode"] == 0

    Run tests marked as inside_docker_check inside docker out of docker
    
core/tests/test_docker_in_docker.py