Install the application RPM
|
NA |
Router#appmgr package install rpm image_name-0.1.0-XR_7.3.1.x86_64.rpm
|
Configure and activate the application
|
-
Load image - [xr-vm_node0_RP0_CPU0:~]$docker load -i /tmp/image_name.tar
-
Verify the image on the router - xr-vm_node0_RP0_CPU0:~]$docker images ls
-
Create container over the image - [xr-vm_node0_RP0_CPU0:~]$docker create image_name
-
Start container - [xr-vm_node0_RP0_CPU0:~]$docker start my_container_id
|
Router#configRouter(config)#appmgrRouter(config-appmgr)#application app_nameRouter(config-application)#activate type docker source image_name docker-run-opts "--net=host" docker-run-cmd "iperf3 -s -d"Router(config-application)#commit |
View the list, statistics, logs, and details of the application container
|
-
List images -[xr-vm_node0_RP0_CPU0:~]$docker images ls
-
List containers - [xr-vm_node0_RP0_CPU0:~]$docker ps
-
Statistics -[xr-vm_node0_RP0_CPU0:~]$docker stats
-
Logs -[xr-vm_node0_RP0_CPU0:~]$docker logs
|
Router#show appmgr source-tableRouter#show appmgr application name app_name info summaryRouter#show appmgr application name app_name info detailRouter#show appmgr application name app_name statsRouter#show appmgr application-tableRouter#show appmgr application name app_name logs |
Run a new command inside a running container
|
|
Router#appmgr application exec name app_name docker-exec-cmd |
Stop the application container
|
|
Router#appmgr application stop name app_name |
Kill the application container
|
|
Router#appmgr application kill name app_name |
Start the application container
|
|
Router#appmgr application start name app_name |
Deactivate the application
|
-
Stop container - [xr-vm_node0_RP0_CPU0:~]$docker stop my_container_id
-
Remove container - [xr-vm_node0_RP0_CPU0:~]$docker rm my_container_id
-
Remove image - [xr-vm_node0_RP0_CPU0:~]$docker rmi image_name
|
Router#configureRouter(config)#no appmgr application app_nameRouter(config)#commit |
Uninstall the application image/RPM
|
|
Router#appmgr package uninstall package image_name-0.1.0-XR_7.3.1.x86_64 |