Skip to main content
Build and deploy agents as Docker containers using praisonai deploy run --type docker.

Quick Start - CLI

1

Install PraisonAI

2

Set API Key

3

Initialize Docker Config

4

Deploy to Docker

Expected Output:
5

Verify

Quick Start - SDK

1

Create Deploy Script

2

Run

agents.yaml with Docker Config

Docker Config Options

In-container API server (sibling api: block)

Docker deploys generate a Flask API server inside the container. Configure it with a sibling api: block under deploy:.
The sibling api: block is type: docker-only. On type: cloud, the block is dropped (cloud providers shell out to external CLIs and do not generate the API server).

Push to Registry

Expected Output:

Check Status

Stop Container

praisonai deploy destroy is cross-platform: on Windows it locates the API process with netstat -ano and terminates it with taskkill, falling back to lsof + SIGTERM on POSIX. This prevents orphaned background Flask API servers after teardown.
Expected Output:

Environment Variables

*Required if using OpenAI models.

Troubleshooting

These commands are for manual validation only. Use praisonai deploy for deployment.