After connecting to redis, the shutdown command is executed and the container is closed together. How can I stop the redis service without closing the container?
You can't; the Redis server process is the container. It is the container PID 1, so if it exits, the container exits. There are no other processes running in the container.
After connecting to redis, the shutdown command is executed and the container is closed together. How can I stop the redis service without closing the container?