Installation

Install polad and pola from a release, with go install, from source, or as a container image.

Pola consists of two binaries: polad (the daemon) and pola (the CLI).

Release binaries

Each GitHub release has Linux binaries for amd64, arm64, 386, and arm.

go install

Requires the Go version declared in go.mod.

go install github.com/nttcom/pola/cmd/polad@latest
go install github.com/nttcom/pola/cmd/pola@latest

@latest installs the latest released version, not the develop branch this site describes.

From source

git clone https://github.com/nttcom/pola.git
cd pola
make build      # writes bin/polad and bin/pola
make install    # or install both into GOPATH/bin

Container image

The image ghcr.io/nttcom/pola runs polad -f polad.yaml in /pola. Mount pola-config/ to /pola and logs/ to /var/log/pola/.

Available tags are latest, vX.Y.Z, and their debug variants (latest-debug, vX.Y.Z-debug), which add network tools, vim, and bash completion. Images are available for linux/amd64 and linux/arm64.

Create pola-config/polad.yaml using the Configuration example, and set global.log.path to /var/log/pola/. Logs are written to the mounted directory on the host and to standard output. View the latter with docker logs polad.

mkdir -p pola-config logs

The examples below use gRPC port 50052 to avoid conflicting with GoBGP on port 50051. Adjust the address and port if needed.

Host network

polad uses the host network, so no ports need to be published. Set global.pcep.address to a host address or wildcard, and configure PCCs to connect to a reachable host address.

docker run -d --name polad --network host \
  -v "$(pwd)/pola-config:/pola" \
  -v "$(pwd)/logs:/var/log/pola" \
  ghcr.io/nttcom/pola:latest

# With the gRPC server on 127.0.0.1:50052
docker exec polad pola -p 50052 session
# or, with the pola binary installed on the host
pola -p 50052 session

Bridge network

Give polad a fixed address on a dedicated network, and connect the PCC container to the same network. Ensure the GoBGP gRPC server is reachable from the polad container.

docker network create --subnet <PCEP network subnet> pcep_net

docker run -d --name polad --network pcep_net --ip <PCE address> \
  -p 127.0.0.1:50052:50052 \
  -v "$(pwd)/pola-config:/pola" \
  -v "$(pwd)/logs:/var/log/pola" \
  ghcr.io/nttcom/pola:latest

docker network connect pcep_net <PCC container name>

global.pcep.address is the address polad listens on inside the container. It accepts an IP address or wildcard (0.0.0.0 or ::), but not a hostname.

PCCs connect to a reachable PCE address on global.pcep.port (4189 by default). PCC containers on pcep_net can connect directly without port publishing.

PCCs outside Docker. Publish the PCEP port with -p 4189:4189 and configure PCCs with the Docker host’s address and port. Set global.pcep.address to a wildcard so polad accepts connections forwarded to the container.

gRPC API. The CLI defaults to 127.0.0.1:50051. The examples below use port 50052.

FromRequirementCommand
Inside the polad containerglobal.grpcServer.address is 127.0.0.1 or a wildcard.docker exec polad pola -p 50052 session
Docker hostglobal.grpcServer.address must be a wildcard or the container’s address. Publish the port with -p 127.0.0.1:50052:50052.pola -p 50052 session
Another container on pcep_netglobal.grpcServer.address is a wildcard or <PCE address>. No publishing needed.pola --host <PCE address> -p 50052 session

The gRPC API has no authentication or encryption. Publish its port on 127.0.0.1 or leave it unpublished unless the network is trusted. If HTTPS_PROXY is set where pola runs, see pola for NO_PROXY.

To build the image yourself, see Building images.

Check the installation

polad --version
pola --version

Release binaries and container images print the release version. Binaries built with go install or from source print dev.

Next, follow the Quick Start.

Last modified November 20, 2026: docs: modernize documentation site (74dd3de)