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

docker 启动后无法访问 #43

Open
sunboy123 opened this issue Dec 5, 2020 · 2 comments
Open

docker 启动后无法访问 #43

sunboy123 opened this issue Dec 5, 2020 · 2 comments

Comments

@sunboy123
Copy link

docker 启动后无法访问,本地测试没有任何反应

@hp-caoy
Copy link

hp-caoy commented Feb 8, 2021

@sunboy123 我clone项目代码后,直接docker也访问不了,
但我尝试下面的方式解决了问题。
1、在代码仓里切换tag git checkout 3.5.0 ,
2、把旧的镜像删掉docker rmi langhsu/mblog:latest
3、再docker-compose up -d,重新生成镜像后启动容器,就能访问了。
希望能帮到大家!

@flyying211
Copy link

@sunboy123 我clone项目代码后,直接docker也访问不了, 但我尝试下面的方式解决了问题。 1、在代码仓里切换tag git checkout 3.5.0 , 2、把旧的镜像删掉docker rmi langhsu/mblog:latest 3、再docker-compose up -d,重新生成镜像后启动容器,就能访问了。 希望能帮到大家!

谢谢分享,还有一个地方就是本机host文件设置

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