This tutorial runs entirely on your local machine using Docker — no GitHub account or CI pipeline required. If you’d prefer a full hands-on introduction using a real CI/CD pipeline, see the Kosli Learning Labs instead.
docker environment, use Kosli to record build and deployment events, and track what
artifacts are running in your runtime environment.
Prerequisites
- Install Docker.
- Create a Kosli account if you haven’t already.
- Install Kosli CLI.
- Get a Kosli API token.
Steps
Set up
Set the Check your Kosli setup:This should return a list of flows or “No flows were found”.Clone the quickstart repository and export the current commit SHA:
KOSLI_ORG and KOSLI_API_TOKEN environment variables:Create a Kosli Flow
The repository includes a Create a Flow called Confirm it was created:
kosli.yml template file. Inspect it:quickstart-nginx using this template:In the web interface, select Flows in the left sidebar. You should see
quickstart-nginx listed. No artifacts have been reported yet.Create a Kosli Trail
Create a Trail in the
quickstart-nginx Flow, named after the current git commit:Attest an artifact
The repository’s Verify the artifact was recorded:
docker-compose.yml uses a public nginx image as the artifact for this tutorial.Attest it to Kosli:Create a Kosli environment
Create an environment called Verify it was created:
quickstart of type docker:In the web interface, select Environments. You should see
quickstart listed with no snapshots yet.Report what is running
Run the artifact:Confirm the container is running:Snapshot the environment to report all running containers to Kosli:Confirm the snapshot was created:Get a detailed view of the snapshot:
In the web interface, the Environments page will now show a timestamp in the Last Change At column. Select
quickstart to see the full snapshot.Search Kosli
Use Visit the Kosli Querying guide to learn more about the search command.
kosli search to find everything Kosli knows about an artifact or git commit: