Gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed Traceback (most recent call last):

I really want to know how this problem is solved when I installed opencv3.4.6 in the docker that supports gstreamer, opencv comes from below:


I think I have downloaded successfully and have the following support information:a6461ab177461d10562cbb001711158
Then I tried to call my USB camera in the following format:


However, the following error was reported:

But when I run this program successfully on the host with the same opencv version, print error information in the docker container, is the docker and the host install opencv different way? Someone can answer for me, thank you

Please provide your platform information and the docker container version.