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版的mysql时出现问题 系统debian10 #16

Closed
shelllog opened this issue Mar 20, 2020 · 11 comments
Closed

在安装docker版的mysql时出现问题 系统debian10 #16

shelllog opened this issue Mar 20, 2020 · 11 comments

Comments

@shelllog
Copy link

Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
errors pretty printing info
docker install success!

docker run --name trojan-mysql --restart=always -p 55487:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=kXrwj -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain INPUT

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain INPUT

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain OUTPUT

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain OUTPUT
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
mysql启动中, 请稍等...

@Jrohy
Copy link
Owner

Jrohy commented Mar 20, 2020

用vultr的debian10 测了docker安装没问题,用的这个安装脚本:https://github.com/Jrohy/docker-install, 你可以试下官方的sh <(curl -sL https://get.docker.com)

@shelllog
Copy link
Author

你好,我用搬瓦工和cloudcone的vps测试debian10都不可以,我用安装脚本安装后显示新的错误
docker run --name trojan-mysql --restart=always -p 46845:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=ssKdP -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
bash: iptables: command not found
bash: iptables: command not found
bash: iptables: command not found
bash: iptables: command not found
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

@Jrohy
Copy link
Owner

Jrohy commented Mar 20, 2020

看到一些帖子说这个iptables报的错是debian10 的bug, saltstack/salt#55110, 如果官方安装脚本也不行可以换下其他系统,或者不用docker 自己安装非docker版的mysql,到时管理程序指定一下mysql链接就好

@Jrohy
Copy link
Owner

Jrohy commented Mar 20, 2020

你试试用官方脚本来安装sh <(curl -sL https://get.docker.com), 先安装docker成功再说,安装完 docker info看下能否运行

@shelllog
Copy link
Author

应该是debian10系统的问题,我打算尝试一下centos8

@Jrohy
Copy link
Owner

Jrohy commented Mar 20, 2020

我用cloudcone vps的debian10 系统测了安装docker和mysql那环节没问题😂

@shelllog
Copy link
Author

测试 搬瓦工 centos8也不行 debian9可以,cloudcone很奇怪我第一遍装可以,第二遍就不行了

@shelllog
Copy link
Author

建议作者可以在脚本里检测依赖,面板也加上ssl

@Jrohy
Copy link
Owner

Jrohy commented Mar 20, 2020

@Rivenstyle docker没什么依赖的,只要内核大于3.10,一般用二进制文件就能安装

@shelllog
Copy link
Author

安装已经成功,感谢作者,请问可以在配置文件里设置只监听某个域名吗,禁止直接ip访问面板

@Jrohy
Copy link
Owner

Jrohy commented Mar 21, 2020

@Rivenstyle 暂不支持

@Jrohy Jrohy closed this as completed Mar 31, 2020
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