API-Docker
view release on metacpan or search on metacpan
misc/agent-context/.claude/skills/docker-engine-api/examples/python/README.md view on Meta::CPAN
# Dependency-free protocol fixtures (Python 3.10+)
These are original, scoped examplesânot a complete Docker SDK. The helper module contains API range negotiation, padded auth encoding, bounded frame decoding, and bounded NDJSON/progress parsing. The read-only probe uses an **explicit Unix socket**...
## Offline tests
From this directory:
```sh
python -m unittest discover -s tests -v
```
The tests use in-memory byte streams and require no Docker daemon or third-party package. Strict truncation/reserved-byte handling and configured size caps are this example's safety policy, not claims that every Moby release applies identical checks.
## Explicit local probe
```sh
python readonly_probe.py --socket /var/run/docker.sock
```
Select the actual socket first; do not run as root merely to bypass an unknown permission problem. For rootless Docker, pass the verified user socket path. The example's default supported range is 1.40â1.51 for its small read-only surface. It inter...
Container names, image names, IDs, and endpoints may be sensitive. Review output before sharing. Registry-auth helper output is credential material; never log it.
## Deliberate exclusions
No automatic Docker-context parsing, SSH transport, Windows named pipes, TLS transport, hijacked/interactive connections, retrying mutations, streaming content-type negotiation, registry credential helper integration, or full API coverage. Use a main...
## Integration evidence
Unit tests prove parser/helper behavior against fixtures only. Add tests against every advertised daemon version, platform, transport, and compatible implementation before production use. Test lost responses and effective policy enforcement, not only...
( run in 1.167 second using v1.01-cache-2.11-cpan-234fa220139 )