How do I run a jar in a docker container and not be exited?

I use a mirror on the hub.docker "serperga / centos-java-7-oracle-image" to start a container, and intend to use him to run a jar, the jar is maven packaged out can be run directly. Has been running under windows, Linux can also run.
Use the following commands:

[root@localhost ~]# docker run -i -t --privileged=true -v /root/myjar/redis.jar:/root/redis.jar --name redis_2 java -jar /root/redis.jar 

After the start, there will be a lot of log printing on my screen.

(figure 1)

At this point you can see the container is started, and the service is running normally

(figure 2)
At this time whether I was ctrl + c or ctrl + z out of the shell (Figure 1) shown the shell
The container will exit

(image 3)

So how can i let a container run my jar and keep the jar not going to be exited and the container will not be closed?

Heads up! This alert needs your attention, but it's not super important.