redis/docker-library-redis

Execute shutdown command, causing the container to close together

fclever1122 opened this issue · 1 comments

image

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.