I have a program run in a docker container with detached mode.
So how to send a signal such as SIGINT to this program?
You can use docker kill --signal="<signal>" <container name or id>
to send any signal to the root process of a given container.
See https://docs.docker.com/engine/reference/commandline/kill/#send-a-custom-signal--to-a-container