Detach node from a cluster in docker

Hello everyone!

I have a little question about the elasticsearch-node tool: Is it possible to use it in any way to detach a node from a cluster that exists in a docker container?

So far the tool throws an exception that a node cannot be detached if it is still running, which sounds reasonable. I tried shutting down the node inside the container, but it results in the container being shut down.

Thanks in advance for your answers!