Skip to content

Debug Container

Licobox Debug is a command that helps you debug your container while keeping the image slim. Licobox Debug includes a set of utilities that let you inspect and troubleshoot any containers with lacking shell command or debugging tools.

Licobox Debug has a set of common utilities such as coreutils, htop, curl, snitch, etc., allowing you to inspect and troubleshoot running containers, including shim or distroless containers. You can also modify files inside a running container and install additional packages without modifying the container.

Start Licobox Debug from a terminal:

Terminal window
licobox debug "container_name_or_id"

Run an nginx container:

Terminal window
docker run -d --name nginx-app -p 8080:80 nginx

Once the nginx is running by checking http://localhost:8080, start get into debug:

Terminal window
licobox debug "nginx-app"

You can also install additional packages using pkgbox. For example, to install curl:

Terminal window
pkgbox install curl

Installed packages are persisted inside Licobox Debug. Installing or uninstalling packages will not modify the container.

To search available packages you can use pkgbox search curl.