what's wrong with my gstreamer container?

I am developing an application on tx2, using gstreamer and some nvidia gstreamer plugins. My program runs well on native system. Then I build a docker container. The container performs ok only after I run my program on native OS. For example,
1.reboot tx2
2.run my program on native OS
3.run the container
Everything go well by now. But if I do this:
1.reboot tx2
2.run the container
gstreamer just halt.

Below post is describing a vert similar case:
But I get nothing useful from it.

Any idea?

The issue looks resolved with other users’s suggestion: