Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

From HTTP 201 to Persistent Docker Data: Nicola’s MyZubster Pilot Works Locally

说明与用途

MyZubster MVP 在容器重启和完整 Docker Compose 关闭后成功保留数据,证明了在 Windows 上的持久存储。

问题

Ensuring that a Dockerized application preserves data across container restarts and full shutdowns on a local Windows machine.

结果

The MyZubster MVP Docker setup successfully preserved observation data across container restarts and full Compose shutdowns, demonstrating reliable persistence on a Windows host.

工作流

  • Clone the repo
  • Start Docker Desktop and ensure the Linux engine is running
  • Run docker compose up --build -d to build and start services
  • Verify API is reachable via http://localhost:5000/api/observations
  • Create an observation with a POST request
  • Retrieve observations to confirm creation
  • Restart the API service with docker compose restart api and verify data persists
  • Shut down Compose with docker compose down and check that the volume remains
  • Recreate the environment with docker compose up -d and confirm data is still present

证据

We recreated the network and container: docker compose up -d

来源

The observation survived the container restart.

来源

The container exited with code 137.

来源

  • 记录日期: 2026-09-07T19:59:14.676Z