Skip to content

v0.7.0 — Persistent containers, snapshots, and discovery

Choose a tag to compare

@deftio deftio released this 10 Feb 22:53
· 63 commits to main since this release
680aabc

M6: Persistence (resume, snapshot, volumes)

New Features

  • persist=True — containers survive shutdown() and can be resumed later
  • resume_container(name) — reconnect to a stopped persistent container
  • snapshot(image_name) — commit a running container to a new image
  • list_containers() — list all pocket-dock managed containers with status
  • destroy_container(name) — force-remove a persistent container
  • prune() — remove all stopped pocket-dock containers
  • volumes={host: container} — bind-mount host directories into containers
  • Full sync + async API support for all new functions

Improvements

  • Fixed EOF handling in chunked stream demuxer (prevents infinite loop on connection close)
  • Added pytest-xdist for parallel test execution in CI
  • Split CI test phase: parallel-safe tests run with -n auto, race-prone persistence tests run serially
  • Added CI, coverage, and license badges to README

Stats

  • 511 tests (394 unit, 117 integration)
  • 100% line coverage
  • Python 3.10–3.13 tested