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:
https://devtalk.nvidia.com/default/topic/1063418/jetson-tx2/hw-video-encoder-needs-to-be-initialized-on-the-host-before-it-can-be-used-in-a-container-/post/5384982/#5384982
But I get nothing useful from it.

Any idea?

The issue looks resolved with other users’s suggestion:
https://devtalk.nvidia.com/default/topic/1063418/jetson-tx2/hw-video-encoder-needs-to-be-initialized-on-the-host-before-it-can-be-used-in-a-container-/post/5391497/#5391497