Closed BramvdnHeuvel closed 2 years ago
I am running a PostgreSQL container with the name Synapse_Database. It has a database called synapse which I reach as user synapse. Upon running the command below, the program exits immediately.
Synapse_Database
synapse
zcat local-backup.sql.gz | docker exec --tty --interactive Synapse_Database_Backup psql --username=synapse --dbname=synapse -W
Instead of seemingly doing anything, it only outputs the input device is not a TTY.
the input device is not a TTY
I'm running the command on WSL 2 if it matters. Is this a bug or am I doing something wrong?
Perhaps related: https://github.com/prodrigestivill/docker-postgres-backup-local/issues/54
Yes, this is an slightly different case, but I updated the readme. Thanks for the report.
I am running a PostgreSQL container with the name
Synapse_Database
. It has a database calledsynapse
which I reach as usersynapse
. Upon running the command below, the program exits immediately.Instead of seemingly doing anything, it only outputs
the input device is not a TTY
.I'm running the command on WSL 2 if it matters. Is this a bug or am I doing something wrong?