nkanaev / yarr

yet another rss reader
MIT License
3.02k stars 225 forks source link

Fail to run yarr #72

Closed hmsjy2017 closed 3 years ago

hmsjy2017 commented 3 years ago

I successfully compiled yarr using docker, but failed to run the image.

runner@fv-az99-810:~/work/yarr$ docker run yarr
2021/07/18 04:08:43 main.go:86: using db file /data/yarr.db
2021/07/18 04:08:43 migration.go:28: db version is 0. migrating to 6
2021/07/18 04:08:43 migration.go:37: [migration:1] starting
2021/07/18 04:08:43 migration.go:63: [migration:1] failed to start transaction
2021/07/18 04:08:43 main.go:114: Failed to initialise database: unable to open database file: no such file or directory
ikajdan commented 3 years ago

You have to use a Docker volume to create a persistent /data directory. Try docker run -v yarr-db:/data yarr.