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

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

Описание и применение

МиZubster 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