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

Makefile搭建Docker+postgres,执行命令后进入容器无法退出 #8

Closed
LWD8 opened this issue Jul 9, 2022 · 3 comments
Closed

Comments

@LWD8
Copy link

LWD8 commented Jul 9, 2022

单独运行:
make postgres

一直停留在容器里无法退出,也无法执行Makefile的其他命令。查了半天,但好像网上没搜索到答案,所以有人知道是怎么退出容器的吗:

image

@LWD8
Copy link
Author

LWD8 commented Jul 10, 2022

处理好了,首页IP地址写错了,大意。还有就是没把防火墙的5432端口打开。

firewall-cmd --zone=public --add-port=5432/tcp --permanent
重启
systemctl restart firewalld.service

@LWD8
Copy link
Author

LWD8 commented Jul 10, 2022

不过现在有另一个问题,是需要输入密码停在那里,继续踩地雷,一步一个坑

image

@qingwave
Copy link
Owner

qingwave commented Jul 11, 2022

这里只是在docker中安装Postgres,没什么特殊的,报错是因为你更改了Makefile,请参考最新版运行,或者自己手动执行

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