Ghost data gone on container re-creation #365
RaicuRobert
started this conversation in
General
Replies: 4 comments 2 replies
|
I've found "ghost-dev.db" at the' /var/lib/ghost/current/content/data' path. |
0 replies
|
Did the volume get deleted while the container was stopped? ( |
1 reply
|
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 |
1 reply
|
Yeah, I think we should probably update our examples to stop even
recommending development mode and push everyone to use a "proper" SQL
database. 🙈
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 ghostLater 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?
All reactions