@Override
    public void run() {
        while (this.channel.isOpen()) {
            try (SocketChannel socket = this.channel.accept()) {
                try (BufferedReader reader = new BufferedReader(Channels.newReader(socket, StandardCharsets.UTF_8))) {
                    String cmd;
                    while ((cmd = reader.readLine()) != null) {
                        LOGGER.info("Executing command from Docker: " + cmd);
                        this.callback.accept(cmd);
                    }
                }
            } catch (ClosedChannelException e) {
                // ignore
            } catch (IOException e) {
                LOGGER.error("Error processing input from the Docker socket", e);
            }
        }
    }
Simple/dumb unix domain socket that listens for connections,
reads the input to a string, then executes it as a command.

<p>Combined with a small sh/nc program, this makes it easy to execute
commands against a standalone instance of LP in a Docker container.</p>
standalone/app/src/main/java/me/lucko/luckperms/standalone/app/utils/DockerCommandSocket.java