Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:A2aproject A2a java Docker Runtime

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Containers
Last Updated 2026-10-29 00:00 GMT

Overview

Docker (or Podman) container runtime for building the A2A cloud-deployment server image and running the local registry required by the Kind cluster.

Description

The A2A cloud-deployment example uses Docker (or Podman) to build the server container image and to run a local registry container (`kind-registry` on port 5001). The `deploy.sh` script accepts a `--container-tool` flag (`docker` or `podman`). Docker is used to build the image, tag it as `localhost:5001/a2a-cloud-deployment:latest`, push to the local registry, and then Kind pulls from that registry for the Kubernetes deployment. The Dockerfile for the server is generated by the Quarkus build.

Usage

Use this environment when running the K8s deployment scripts. It is required to build the container image and run the local Docker registry that Kind uses for image pulls.

System Requirements

Category Requirement Notes
OS Linux, macOS, or Windows macOS/Windows via Docker Desktop
Hardware 2GB RAM minimum Docker daemon overhead
Disk 5GB free space For base images and build cache

Dependencies

System Packages

  • `docker` (Docker Engine + CLI) OR `podman` (as alternative)
  • Docker daemon running (or Podman with rootless support)

Credentials

No credentials required for local Docker. Registry is local and unauthenticated.

Quick Install

# Install Docker (Ubuntu/Debian)
sudo apt install docker.io
sudo systemctl start docker
sudo usermod -aG docker $USER

# Verify
docker --version

# For Podman alternative:
sudo apt install podman
podman --version

# Deploy with Docker (default)
cd examples/cloud-deployment/scripts
./deploy.sh

# Deploy with Podman
./deploy.sh --container-tool podman

Code Evidence

Container tool selection from `examples/cloud-deployment/scripts/deploy.sh:16-28`:

CONTAINER_TOOL="docker"
while [[ $# -gt 0 ]]; do
    case $1 in
        --container-tool)
            CONTAINER_TOOL="$2"
            shift 2
            ;;
        *)
            echo "Usage: $0 [--container-tool docker|podman]"
            exit 1
            ;;
    esac
done

Podman configuration from `deploy.sh:35-38`:

if [ "$CONTAINER_TOOL" = "podman" ]; then
    export KIND_EXPERIMENTAL_PROVIDER=podman
    echo "Configured Kind to use podman provider"
fi

Local registry container creation from `deploy.sh:61-65`:

$CONTAINER_TOOL run \
    -d --restart=always -p "127.0.0.1:${REG_PORT}:5000" --network bridge --name "${REG_NAME}" \
    mirror.gcr.io/library/registry:2

Common Errors

Error Message Cause Solution
`Cannot connect to the Docker daemon` Docker not running Start Docker service: `sudo systemctl start docker`
`permission denied while trying to connect to Docker` User not in docker group Run `sudo usermod -aG docker $USER` and re-login
`registry container creation failed` Port 5001 in use Remove existing container: `docker rm -f kind-registry`
`native image fails on rootless Podman` Config dir not writable Use JVM image instead (already configured for Kafka devservices)

Compatibility Notes

  • Podman: Fully supported via `--container-tool podman`; sets `KIND_EXPERIMENTAL_PROVIDER=podman`.
  • Docker Desktop (macOS/Windows): Works with Kind; ensure adequate resource allocation (4GB+).
  • Rootless Docker/Podman: Supported; the deploy script uses bridge networking for the registry.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment