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

关于doker部署时ip的问题 #23

Open
smilecat2788 opened this issue Sep 5, 2023 · 3 comments
Open

关于doker部署时ip的问题 #23

smilecat2788 opened this issue Sep 5, 2023 · 3 comments

Comments

@smilecat2788
Copy link

我部署在家里的ubuntu主机上了,使用的是docker,但是我的公网ip是会变动的,请问grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://IP address:20011#g'能不能填域名或者是局域网ip

@leucoon
Copy link
Contributor

leucoon commented Oct 8, 2023

可以

@Avey777
Copy link

Avey777 commented Feb 21, 2024

可以
image
命令执行不成功,这个可以优化成默认的0.0.0.0和 :: 吗? 这样就不用再去执行这一步了

@Avey777
Copy link

Avey777 commented Feb 21, 2024

我部署在家里的ubuntu主机上了,使用的是docker,但是我的公网ip是会变动的,请问grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://IP address:20011#g'能不能填域名或者是局域网ip

你这个命令执行可以成功? 我怎么执行都不能成功

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

3 participants