private void checkNotRunning() {
        if (isRunning()) {
            throw new IllegalStateException("Setter can only be called before the container is running");
        }
    }
Checks if already running and if so raises an exception to prevent too-late setters.
modules/couchbase/src/main/java/org/testcontainers/couchbase/CouchbaseContainer.java