Skip to content

Lightrun on Docker

Installing Lightrun inside a Docker container

Docker containers are ephemeral.

If you were to create a shell into a Docker container (by docker exec -it <container-id>, for example) and add the Lightrun files there, they would disappear the next time the container would spin up due to the ephemeral nature of that container.

Instead, we suggest you install Lightrun by adding it to the underlying Docker image directly, i.e. by "baking" the agent into the image.

Instructions for each language we support are provided inside the "Install an Agent" section for the language:


Last update: March 10, 2024