Containerlab notes
Bring up a lab
containerlab deploy
Bringing down a lab
containerlab destroy
Restarting an individual container
dcoker restart [container name]
Managing images
All images are docker images. You can mnnage them as below.
Listing images
root@r620:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
vrnetlab/cisco_vios 15.6.7 c2639dfa6e6d 37 minutes ago 545MB
Removing images
docker rmi c2639dfa6e6d
Saving an image
docker save c2639dfa6e6d | gzip > docker_cisco_vios_15_6_7.tar.gz
Cisco vios
Username:
admin
Password:
admin
cisco.clab.yaml
name: cisco
topology:
nodes:
vios:
kind: linux
image: vrnetlab/cisco_vios:15.6.7
env:
HOSTNAME: vios
links:
- endpoints: ["vios:eth1"]
Fortigate
Username:
admin
Password:
admin
fortigate.clab.yml
name: fortigate
topology:
nodes:
fortigate:
kind: fortinet_fortigate
image: vrnetlab/vr-fortios:7.0.15
links:
- endpoints: ["fortigate:eth1", "fortigate:eth2"]
Juniper vMX
Username:
admin
Password:
admin@123
vmx.clab.yml
name: vmx topology: nodes: vmx: kind: juniper_vmx image: vrnetlab/juniper_vmx:21.2R3.8 links: - endpoints: ["vmx:eth1"]
Ubuntu
Username:
clab
Password:
clab@123
ubuntu.clab.yml
name: ubuntu
topology:
nodes:
ubuntu:
kind: generic_vm
image: vrnetlab/canonical_ubuntu:jammy
links:
- endpoints: ["ubuntu:eth1"]
Documentation
‘vrnetlab ubuntu <https://github.com/hellt/vrnetlab/tree/master/ubuntu>`_