private void tagImage(String sourceImage, String targetImage, String targetTag) throws InterruptedException {
        DockerClient dockerClient = DockerClientFactory.instance().client();
        dockerClient
            .tagImageCmd(new RemoteDockerImage(DockerImageName.parse(sourceImage)).get(), targetImage, targetTag)
            .exec();
    }
From 6.8, we can optionally activate security with a default password.
modules/elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java