宿主机crontab调用docker容器shell脚本失败排查
shell 命令行直接执行ok,但是挂到cron上就无法执行成功。
1:查看/var/log/cron
发现对应的定时任务是调度了,但是紧接着下面有一行提示
````
sendmail: fatal: parameter inet_interfaces: no local interface
```
2: /etc/postfix/main.cf
```
#inet_interfaces = localhost
#inet_protocols = localhost
inet_interfaces = all
inet_protocols = all
```
1067
0
0
1年前