后台运行docker提示TTY问题
-
脚本在后台运行,就没有交互的终端,这就会引发如题所示错误
the input device is not a TTY
,解决办法就是去掉-t
这个参数。 -
脚本运行,去掉
-t
执行正常。
2024-09-04 17:40:26 139887691278144 Check_upload_Cos.py:36 INFO run sql:select meeting_id from t_meeting_record where end_time >= '2024-09-01 00:00:00' and end_time < '2024-09-04 00:00:00'
2024-09-04 17:40:26 139887691278144 Check_upload_Cos.py:15 DEBUG run sql: docker exec -i mysql-test /bin/bash -c "echo \"select meeting_id from t_meeting_record where end_time >= '2024-09-01 00:00:00' and end_time < '2024-09-04 00:00:00'\"| mysql -h 10.0.16.16 -u ucds -P 3309 -pucds record"
评论区