Ghost data gone on container re-creation #365
Replies: 4 comments 2 replies
-
I've found "ghost-dev.db" at the' /var/lib/ghost/current/content/data' path. |
Beta Was this translation helpful? Give feedback.
-
Did the volume get deleted while the container was stopped? ( |
Beta Was this translation helpful? Give feedback.
-
Ah, the removal of $ docker run -d --name some-ghost \
-e NODE_ENV=development \
-e "database__connection__filename=/var/lib/ghost/content/data/ghost.db" \
-v some-ghost-data:/var/lib/ghost/content \
ghost:5 |
Beta Was this translation helpful? Give feedback.
-
Yeah, I think we should probably update our examples to stop even
recommending development mode and push everyone to use a "proper" SQL
database. 🙈
|
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions