Docker¶
PyTAK publishes two container images to GHCR on tagged releases:
ghcr.io/snstac/pytak-deb:<tag>installs PyTAK from the release.debpackage.ghcr.io/snstac/pytak-rpm:<tag>installs PyTAK from the release.rpmpackage.
For stable release tags only, both images also publish :latest.
Pull¶
Run¶
The image entrypoint is pytak, so arguments are passed directly to the CLI.
Send CoT from file¶
docker run --rm \
-v "$PWD/events.xml:/data/events.xml:ro" \
ghcr.io/snstac/pytak-deb:<tag> \
--tx-file /data/events.xml tcp://takserver.example.com:8087
Enroll with tak:// URL and connect¶
docker run --rm \
-v "$PWD/pytak-certs:/home/pytak/.pytak/certs" \
ghcr.io/snstac/pytak-deb:<tag> \
"tak://com.atakmap.app/enroll?host=takserver.example.com&username=user&token=token"
Configuration¶
Environment variables can be passed through as usual:
docker run --rm \
-e DEBUG=1 \
-e COT_URL=tcp://takserver.example.com:8087 \
ghcr.io/snstac/pytak-rpm:<tag>
Notes¶
- Containerized UDP multicast traffic may require host networking.
- For most deployments, use
tcp://,tls://,ws://,wss://, ortak://instead of multicast. - Persist
~/.pytak/certsif you usetak://enrollment and want cert reuse between runs.