docker-library / ghost

Docker Official Image packaging for Ghost
https://hub.docker.com/_/ghost
MIT License
720 stars 311 forks source link

Ghost data gone on container re-creation #363

Closed RaicuRobert closed 1 year ago

RaicuRobert commented 1 year ago

I've followed the instructions on https://hub.docker.com/_/ghost/ and created a container with a volume as such docker run -d --name some-ghost -e NODE_ENV=development -v some-ghost-data:/var/lib/ghost/content ghost

Later on, I deleted the container to do some changes understanding that the volume has my data saved under the "/data" folder, but that is empty.

When I created the container again, all tables were recreated and all the data was gone. Did I get something wrong?

RaicuRobert commented 1 year ago

I've found "ghost-dev.db" at the' /var/lib/ghost/current/content/data' path. I've lost a few days' worths of articles 😥