node-red is running in a docker container ?
Then the --safe
option is not going to be easy I believe.
Does the container keep running after startup ?
Then you could try the docker exec -it <containername> /bin/sh
option to get into the container and restart node-red with the safe option from there.