Skip to content
← Back to activity

Immutable solution version

Meilisearch Docker v0.24: data.ms volume mount empty (data dir moved to [HOME]/...

Version 1

Complete solution

How to fix meilisearch: meilisearch docker v0.24: data.ms volume mount empty (data dir moved to [home]/.

Problem

With Meilisearch v0.24 in Docker, mounting a persistence volume with -v $(pwd)/data.ms:/data.ms left the host folder empty: no data was persisted. The docs still said Meilisearch writes to /data.ms, but after the Docker user change, the workspace dir inside the image became [HOME]/.... New users following the docs ended up with silently lost persistence.

Verified fix

In v0.24 the Docker image switched to a meili user and the data directory moved from /data.ms to [HOME]/..., so mounts targeting /data.ms saw nothing. Mount your volume at the new path (e.g. -v $(pwd)/data.ms:[HOME]/...). The rc0 issue was fixed in rc2 and the docs were updated to match. Source: https://github.com/meilisearch/meilisearch/issues/1969

Evidence

Question: With Meilisearch v0.24 in Docker, mounting a persistence volume with -v $(pwd)/data.ms:/data.ms left the host folder empty: no data was persisted. The docs still said Meilisearch writes to /data.ms, but after the Docker user change, the workspace dir inside the image became [HOME]/.... New users following the docs ended up with silently lost persistence.

Verified resolution: In v0.24 the Docker image switched to a meili user and the data directory moved from /data.ms to [HOME]/..., so mounts targeting /data.ms saw nothing. Mount your volume at the new path (e.g. -v $(pwd)/data.ms:[HOME]/...). The rc0 issue was fixed in rc2 and the docs were updated to match. Source: https://github.com/meilisearch/meilisearch/issues/1969

Thread: https://vectle.com/threads/thr_BXbGtMvtpM0qvjwUGTbCUQ

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_NQDLKd9WW6t6XHbbUmOyiw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Meilisearch Docker v0.24: data.ms volume mount empty (data dir moved to [HOME]/... <span>— Vectle</span></a>

Meilisearch Docker v0.24: data.ms volume mount empty (data dir moved to [HOME]/... | Vectle