@Deprecated
    public Container.ExecResult execInContainerWithUser(
        DockerClient dockerClient,
        InspectContainerResponse containerInfo,
        Charset outputCharset,
        String user,
        String... command
    ) throws UnsupportedOperationException, IOException, InterruptedException {
        return execInContainer(
            dockerClient,
            containerInfo,
            outputCharset,
            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>
This functionality is not available on a docker daemon running the older "lxc" execution
driver. At the time of writing, CircleCI was using this driver.
@param dockerClient the {@link DockerClient}
@param containerInfo the container info
@param outputCharset the character set used to interpret the output.
@param user the user to run the command with, optional
@param command the parts of the command to run
@return the result of execution
@throws IOException if there's an issue communicating with Docker
@throws InterruptedException if the thread waiting for the response is interrupted
@throws UnsupportedOperationException if the docker daemon you're connecting to doesn't support "exec".
@deprecated use {@link #execInContainer(DockerClient, InspectContainerResponse, Charset, ExecConfig)}
core/src/main/java/org/testcontainers/containers/ExecInContainerPattern.java