Use LISA docker image on Linux

This guide provides two ways to run LISA in Docker on Linux:

  • Option A: Quick Container Script — automated, recommended for most users

  • Option B: Manual Setup — step-by-step commands if you prefer full control

Option B: Manual Setup

If you prefer to set up Docker and run LISA containers yourself, follow the steps below.

Step 1: Install Docker

On Ubuntu:

sudo apt update
sudo apt install docker.io -y

On Azure Linux:

sudo tdnf update
sudo tdnf install -y moby-engine moby-cli

Step 2: Start Docker service

sudo systemctl start docker

Step 3: Configure Docker permissions

Add the current user to the “docker” group to run Docker without sudo:

sudo usermod -aG docker $USER

Apply the group change immediately without logging out:

newgrp docker

Step 4: Run LISA container

docker run --rm -i mcr.microsoft.com/lisa/runtime:latest \
    lisa -r lisa/examples/runbook/hello_world.yml

Develop with Dev Containers

For developers who want to contribute to LISA or develop test cases, see Develop LISA using VS Code Dev Containers for instructions on using VS Code Dev Containers with all dependencies pre-configured.