Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win使用docker容器运行出现问题 #52

Open
MrYangyt opened this issue Oct 19, 2022 · 3 comments
Open

win使用docker容器运行出现问题 #52

MrYangyt opened this issue Oct 19, 2022 · 3 comments

Comments

@MrYangyt
Copy link

win11使用docker运行omniedge,有些报错但是也可以连接成功,可以ping通,但是3389端口好像有问题,无法远程,切每次重启,分配的ip好像也会改变,不是固定的
image

@yongqianme
Copy link
Member

Docker 里面的entrypoint有一句:cp /proc/sys/kernel/random/uuid /etc/machine-id 是用来解决有些container环境下,没有machineid的问题,container重新建立后会生成一个新的uuid,所以会有一个新的IP。可以尝试自己编译,删除这一条,源文件在:https://github.com/omniedgeio/omniedge-docker/blob/main/entrypoint.

报错看你的网络访问后端有些问题,可以尝试使用在国外的VPS测试。

使用windows docker然后使用3389远程,我们没有测试过,我们使用的是windows的客户端测试,打开windows的远程允许就可以了。欢迎你尝试后,告诉我们,谢谢。

@MrYangyt
Copy link
Author

ip更改的问题可以修改了文件,没问题了,但是还是无法win下使用docker客户端,进行3389远程,客户端没问题,客户端可以正常连接远程,使用docker客户端就无法连接,但是可以ping通

@yongqianme
Copy link
Member

3389 的远程服务是跑在windows下的,现在的连接是在docker下面,两者的网络应该需要配置一下,具体怎么操作我没有经验。查了一下,
https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
这个需求是不是类似?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants