Unable to restore. "Could not read confirmation message"

Dear Community,

I am having trouble restoring my instance using a dump. When I run the restore command, I do not get an opportunity to confirm the restore process. Instead, it immediately ends. You can see this in the timestamps.

2024-11-21T05:52:16Z: INFO      ▶ 001 No config file found, using default or config from environment variables.
2024-11-21T05:52:16Z: INFO      ▶ 002 Running migrations…
2024-11-21T05:52:16Z: INFO      ▶ 06a Ran all migrations successfully.
2024-11-21T05:52:16Z: WARNING   ▶ 06b Restoring a dump will wipe your current installation!
2024-11-21T05:52:16Z: WARNING   ▶ 06c To confirm, please type 'Yes, I understand' and confirm with enter:
2024-11-21T05:52:16Z: CRITICAL  ▶ 06d could not read confirmation message: EOF

Thank you for your help!

How are you running Vikunja?

Thank you, for your quick response.
I run it via docker compose.
Here is my .yml

version: ‘3’

services:
vikunja:
# image: vikunja/api:unstable
image: vikunja/vikunja
environment:
VIKUNJA_SERVICE_PUBLICURL: http://10.1.255.8:3000
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: --------
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: ----------
ports:
- 3000:3456
volumes:
- ./files:/app/vikunja/files
- ./dump:/dump
depends_on:
db:
condition: service_healthy
restart: unless-stopped
# user: “0:0”

db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: ----------
MYSQL_USER: vikunja
MYSQL_PASSWORD: ---------
MYSQL_DATABASE: vikunja
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
healthcheck:
test: [“CMD-SHELL”, “mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD”]
interval: 2s
start_period: 30s

I am trying to restore it with this comand using an alias :

eugen@km-vsv-24:~/vikunja$ vikunja-docker restore files/dump.zip
2024-11-21T11:30:49Z: INFO      ▶ 001 No config file found, using default or config from environment variables.
2024-11-21T11:30:49Z: INFO      ▶ 002 Running migrations…
2024-11-21T11:30:49Z: INFO      ▶ 06a Ran all migrations successfully.
2024-11-21T11:30:49Z: WARNING   ▶ 06b Restoring a dump will wipe your current installation!
2024-11-21T11:30:49Z: WARNING   ▶ 06c To confirm, please type 'Yes, I understand' and confirm with enter:
2024-11-21T11:30:49Z: CRITICAL  ▶ 06d could not read confirmation message: EOF

What does the alias look like when it’s expanded?

You’ll need to make sure docker runs this as interactive, as described here: https://docs.docker.com/reference/cli/docker/container/exec/#options