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

容器关闭后,下次启动,无法连接 #1

Open
zxlgh opened this issue Jan 27, 2024 · 3 comments
Open

容器关闭后,下次启动,无法连接 #1

zxlgh opened this issue Jan 27, 2024 · 3 comments

Comments

@zxlgh
Copy link

zxlgh commented Jan 27, 2024

当容器第一次启动成功后,可以成功访问内网。

关闭容器,再一次启动容器,或重启容器,连接失败,报如下错误:

nc: read failed (0/3): Broken pipe
kex_exchange_identification: Connection closed by remote host

经过实验,发现容器重启需要在关闭容器的时候输入XXX退出easyconn登录,docker start ec才能正确提供内网服务。

请大佬看看应该怎么处理这个问题。

@ultranity
Copy link
Owner

之前没遇到过,看上去可以试下在https://github.com/ultranity/minimal-EasyConnect/blob/main/src/easyconnect.sh#L201 在201行添加 $EASYCONN logout 防御性退出登录一下

如果不行以及没有真的非常需要压缩容器体积推荐使用https://github.com/docker-easyconnect/docker-easyconnect,这个仓库实现更多是练手用

@zxlgh
Copy link
Author

zxlgh commented Jan 28, 2024

之前没遇到过,看上去可以试下在https://github.com/ultranity/minimal-EasyConnect/blob/main/src/easyconnect.sh#L201 在201行添加 $EASYCONN logout 防御性退出登录一下

如果不行以及没有真的非常需要压缩容器体积推荐使用https://github.com/docker-easyconnect/docker-easyconnect,这个仓库实现更多是练手用

请问是在github的源码文件中添加,然后重新build镜像吗?

@ultranity
Copy link
Owner

是的建议拉取源码修改然后打包运行,或者bash 进到镜像内修改也行xs

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