Containerlab Installation
- January 1, 1
- 3 min read
- 436 words
1. Introduction
In this guide, tailored for network engineers and automation enthusiasts, I’ll show you step-by-step how to:
- Install Containerlab using Juniper’s cRPD image.
- Deploy a fully functional network lab.
- Manage licenses and add-on features to optimize your setup.
2. Prerequisites for Setting Up a Containerized Lab
To follow this guide, you’ll need:
- A workstation running Ubuntu or Debian or RPM based linux system.
3. Step-by-Step Guide to Deploying Juniper cRPD with Containerlab
3.1 Installing Containerlab
In this article we are only focusing to install containerlabcRPD
3.1.1 Install Containerlab
To install all components at once, run the following command on any of the supported OSes w.r.t. Containerlab Installation
curl -sL https://containerlab.dev/setup | sudo -E bash -s "all"
you may need to install curl if not installed use
sudo apt install curlorsudo dnf install curlThe above mentioned command should be sufficient to install the containerlab and docker components.
3.2 Verify Containerlab Installation
3.2.1 Verify version of Containerlab and Docker
To verify the version of containerlab and docker, simply by issuing clab version and sudo docker version in your terminal.
ubu@ubu:~/Juniper_cRPD_testing$ clab version
____ ___ _ _ _____ _ ___ _ _ _____ ____ _ _
/ ___/ _ \| \ | |_ _|/ \ |_ _| \ | | ____| _ \| | __ _| |__
| | | | | | \| | | | / _ \ | || \| | _| | |_) | |/ _` | '_ \
| |__| |_| | |\ | | |/ ___ \ | || |\ | |___| _ <| | (_| | |_) |
\____\___/|_| \_| |_/_/ \_\___|_| \_|_____|_| \_\_|\__,_|_.__/
version: 0.60.1
commit: 37adecb8
date: 2024-12-07T19:58:41Z
source: https://github.com/srl-labs/containerlab
rel. notes: https://containerlab.dev/rn/0.60/#0601
ubu@ubu:~/Juniper_cRPD_testing$
ubu@ubu:~/Juniper_cRPD_testing$ sudo docker version
Client: Docker Engine - Community
Version: 26.1.4
API version: 1.45
Go version: go1.21.11
Git commit: 5650f9b
Built: Wed Jun 5 11:28:57 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.1.4
API version: 1.45 (minimum version 1.24)
Go version: go1.21.11
Git commit: de5c9cf
Built: Wed Jun 5 11:28:57 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.24
GitCommit: 88bf19b2105c8b17560993bee28a01ddc2f97182
runc:
Version: 1.2.2
GitCommit: v1.2.2-0-g7cb3632
docker-init:
Version: 0.19.0
GitCommit: de40ad0
ubu@ubu:~/Juniper_cRPD_testing$
3.3 Enable passwordless docker commands
It is always handy to add user to the docker group to enable passwordless docker commands
sudo usermod -aG docker ${USER}
logout and login again to get the passwordless docker command access.
4. Conclusion
Congratulations! You’ve deployed Containerlab on your workstation. We shall be using this containerlab for testing lab based on Juniper cRPD image, Cisco IOL image and Arista cEOS testing for testing configurations, simulating network scenarios, and automating workflows.