Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从Docker容器中访问热点网络上的设备?_Docker_Ubuntu_Networking_Hotspot - Fatal编程技术网

如何从Docker容器中访问热点网络上的设备?

如何从Docker容器中访问热点网络上的设备?,docker,ubuntu,networking,hotspot,Docker,Ubuntu,Networking,Hotspot,我有一个Docker容器,它使用wirelss ip摄像头的流。它是一堆容器的一部分,其中一些是摄像头,另一些做其他事情,所有这些都是自行创建的Docker网络(不是网桥或主机)的一部分。ip摄像头与主机(一个带有Ubuntu20.04桌面的英特尔Nuc)位于同一个lan上,并且一切正常。 我现在想让它成为一个“独立”的解决方案,所以我激活了Nuc的热点,并通过无线ip摄像头连接到它。我用一个桌面VLC验证了我可以使用新的热点IP进行流式传输,并在Docker容器上定义了它。令我惊讶的是,Doc

我有一个Docker容器,它使用wirelss ip摄像头的流。它是一堆容器的一部分,其中一些是摄像头,另一些做其他事情,所有这些都是自行创建的Docker网络(不是网桥或主机)的一部分。ip摄像头与主机(一个带有Ubuntu20.04桌面的英特尔Nuc)位于同一个lan上,并且一切正常。 我现在想让它成为一个“独立”的解决方案,所以我激活了Nuc的热点,并通过无线ip摄像头连接到它。我用一个桌面VLC验证了我可以使用新的热点IP进行流式传输,并在Docker容器上定义了它。令我惊讶的是,Docker集装箱看不到摄像机。我也用ping和curl进行了测试,但什么都没有,似乎它无法从Docker内部到达热点网络

我错过了什么?为什么它与访问局域网不一样?(这是直截了当的,没有特殊配置) 我怎样才能修好它