> For the complete documentation index, see [llms.txt](https://ccie-sp.gitbook.io/ccie-spv5.1-labs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ccie-sp.gitbook.io/ccie-spv5.1-labs/containerlab-tips.md).

# Containerlab Tips

**docker image ls** displays your docker image repo:

<div align="left"><figure><img src="/files/yNdrIG43eqqqUHRldj4R" alt=""><figcaption></figcaption></figure></div>

**docker container ls** displays running containers. Once your topology is finished launching, you should see all contianers as **healthy**. Occasionally, a node may fail to boot properly. In that case, I just stop the containerlab topology entirely and restart it.

<figure><img src="/files/WL4ydz3BEWwz5yiLsiI6" alt=""><figcaption></figcaption></figure>

You can use **docker logs clab-\<topology name>-\<node name> -f** to watch logs as a node boots up. For example:

```
docker logs clab-russo-spv4-XR1 -f
```

In general, **telnet \<mgmt ip> 5000** will allow you to access a node's console port. Use ctrl+], **quit** to exit.

<div align="left"><figure><img src="/files/ET9VeLjZCQkzRz2IwkyC" alt=""><figcaption></figcaption></figure></div>

Ensure you have transfered config files to all nodes before running labs on XR nodes. If your config file does not exist on the node, you will commit and replace a blank config and lose access to the node. For example, if you enter 'y' here, you will lose access:

<div align="left"><figure><img src="/files/kkuDiG2KodpoZup5F6Z6" alt=""><figcaption></figcaption></figure></div>

In MTPutty, you can use ctrl+tab and ctrl+shift+tab to navigate between tabs without a mouse.

I use **docker system prune** periodically to safely free up disk space. This clears out build cache and stopped containers.

**containerlab destroy -a** will destroy any running topology.

**containerlab inspect --all** will show all running topologies.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ccie-sp.gitbook.io/ccie-spv5.1-labs/containerlab-tips.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
