ZHE
  • 工具
  • AI命令
  • 导航
  • 博客
  • |
  • 登录
  • 注册
  • AI画图提示词
  • ubuntu
  • linux
  • web3
  • seo
  • laravel
  • wordpress
  • PHP
  • Stable Diffusion实战
  • Go语言教程之边写边学
Copyright zhe.ink ©2023-2025
Email: service@zhe.ink
吉ICP备2024017385号-3
gongan苏公网安备 32050902101537号

docker mysqldump the input device is not a TTY

2023-08-10 16:11:06
401
docker exec

当用crontab运行一个脚本,该脚本含有docker命令时,出现docker mysqldump the input device is not a TTY错误提示。

解决方法是去掉命令行中的-i和-t选项。

 

如脚本文件中的命令如下:

docker exec -it dockername mysqldump

需改成

docker exec dockername mysqldump

 

相关文章
mysql在docker容器下运行时的数据备份
docker问题:docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
laravel - 在docker中composer install时,ext-zip扩展问题,docker安装libzip
caddy和php在不同docker下:部署laravel应用的caddyfile配置
ubuntu docker安装php imageMagick方法
php imagck读取pdf错误:attempt to perform an operation not allowed by the security policy PDF
Ubuntu 18.04/20.04/22.04: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
如何关闭Docker远程访问
docker-compose 无法用普通用户运行
ubuntu普通用户无法执行docker命令,必须得用sudo的问题