@Deprecated
    default Container.ExecResult execInContainerWithUser(String user, String... command)
        throws UnsupportedOperationException, IOException, InterruptedException {
        return ExecInContainerPattern.execInContainer(
            getDockerClient(),
            getContainerInfo(),
            ExecConfig.builder().user(user).command(command).build()
        );
    }
Run a command inside a running container as a given user, as using "docker exec -u user".
<p>
@see ExecInContainerPattern#execInContainerWithUser(DockerClient, InspectContainerResponse, String, String...)
@deprecated use {@link #execInContainer(ExecConfig)}
core/src/main/java/org/testcontainers/containers/ContainerState.java