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.
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.
I'm running the command on WSL 2 if it matters. Is this a bug or am I doing something wrong?
I am running a PostgreSQL container with the name
Synapse_Database. It has a database calledsynapsewhich 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?