Timeline for answer to Error "The input device is not a TTY" by yestema
Current License: CC BY-SA 4.0
Post Revisions
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 5, 2024 at 8:04 | comment | added | Ajay Kumar Chawla |
docker-compose -f /srv/backend/local.yml exec -t postgres backup this is the command that I used. I really don't know how it worked.
|
|
| Jul 2, 2024 at 15:23 | comment | added | V. Bozz | @ajaychawla It seems to me that you are using an undocumented option docs.docker.com/reference/cli/docker/compose/exec - what is your complete command? | |
| Mar 28, 2024 at 6:41 | comment | added | Ajay Kumar Chawla | I used -t instead of -T, I don't know what is the difference but -t worked | |
| Jan 22, 2024 at 7:00 | history | edited | Ziyaddin Sadygly | CC BY-SA 4.0 |
added 1 character in body
|
| Jul 18, 2022 at 8:08 | comment | added | SyedAsadRazaDevops | in my case, I'm trying to take the dump from a running container of my "production" env with authentication and passing with some arguments, then take the output of .bak file of my mssql database container. Remove -it from the command. If you want to keep it interactive then keep -i | |
| Sep 15, 2021 at 12:32 | history | edited | yestema | CC BY-SA 4.0 |
Add short variant of BMitch answer as far as my additional answer goes on top... so people could easily find out what to do
|
| Jun 26, 2021 at 0:20 | history | edited | yestema | CC BY-SA 4.0 |
add example for Mysql
|
| Jun 24, 2021 at 17:29 | comment | added | Enrique René |
with MySQL database running on mysql virtual machine (with the suggested -T above): docker-compose exec -T mysql mysql -uuser_name -ppassword database_name < dir/to/db_backup.sql
|
|
| May 8, 2021 at 2:12 | history | edited | yestema | CC BY-SA 4.0 |
Add the main concept to header so people could find it faster
|
| Jan 26, 2020 at 16:26 | comment | added | T.S. |
Just what I needed too. According to the help: -T Disable pseudo-tty allocation. By default docker-compose exec allocates a TTY.
|
|
| Aug 19, 2019 at 23:44 | history | answered | yestema | CC BY-SA 4.0 |