public synchronized boolean isDockerAvailable() {
        try {
            client();
            return true;
        } catch (IllegalStateException ex) {
            return false;
        }
    }
Checks whether Docker is accessible and {@link #client()} is able to produce a client.

@return true if Docker is available, false if not.
core/src/main/java/org/testcontainers/DockerClientFactory.java