Fix the issue that when docker exec a paused container, it will always

I think we should check the container status whether is paused  before exec a container. and it should not exec a paused container.

Fixes #9352

Signed-off-by: Chen Chao cc272309126@gmail.com