Device# show running-config | section app-hosting app-hosting appid 1keyes app-vnic AppGigabitEthernet trunk guest-ipaddress 172.27.0.137 netmask 255.240.0.0 app-default-gateway 172.27.0.129 guest-interface 0 app-resource docker vlan 14 guest-interface 0 run-opts 1 "-e TEAGENT_ACCOUNT_TOKEN=r3d29srpebr4j845lvnamwhswlori2xs" run-opts 3 "-e TEAGENT_PROXY_TYPE=STATIC" run-opts 4 "-e TEAGENT_PROXY_LOCATION='proxy-wsa.esl.cisco.com:80'" prepend-pkg-opts name-server0 172.16.0.2 start The following is sample output from running the app-resource Docker package merged with the Docker runtime options:
// Example of "prepend-package-opts" merging app-hosting appid TEST app-vnic management guest-interface 3 app-resource docker prepend-package-opts !!! run-opts 1 "--entrypoint '/bin/sleep 1000000'" run-opts 2 "-e TEST=1 " # Specify runtime and startup startup: runtime_options: "--env MYVAR2=foo --cap-add=NET_ADMIN" Merged docker run-opts passed to CAF's activation payload: {"auto_deactivate": false, "resources": {"profile": "custom", "cpu": "1000", "memory": "1024", "rootfs_size": "0", "vcpu": 1, "disk": 10,"network": [{"interface-name": "eth3", "network-name": "mgmt-bridge100"}, {"interface-name": "eth4", "network-type": "vlan", "mode": "static", "ipv4": {"ip": "10.2.0.100", "prefix":
"24", "default": false, "gateway": "" },"network-info": { "vlan-id": "10" }, "mac_forwarding": "no", "mirroring": "no"}, {"interface-name": "eth0", "network-type": "vlan", "network-info": { "vlan-id": "12" }, "mac_forwarding": "no", "mirroring": "no"}, {"interface-name": "eth2", "network-type": "vlan", "networkinfo": {"vlan-id": "22" }, "mac_forwarding": "no", "mirroring": "no"}, {"interface-name ": "eth1", "network-type": "vlan", "network-info": {"vlan-id": "all" }, "mac_forwarding": "no", "mirroring":
"no"}]}, "startup":{"runtime_options":"--env MYVAR2=foo --cap-add=NET_ADMIN -- entrypoint'/bin/sleep 1000000' -e TEST=1"}} // Example of no "prepend-package-opts" which is the current behavior since 16.12 where pkg.yml default runoptions are ignored. app-hosting appid TEST app-vnic management guest-interface 3 app-resource docker !!! run-opts 1 "--entrypoint '/bin/sleep 1000000'" run-opts 2 "-e TEST=1 " # Specify runtime and startup startup: runtime_options: "--env MYVAR2=foo --cap-add=NET_ADMIN" Merged docker run-opts passed to CAF's activation payload: {"auto_deactivate": false, "resources": {"profile": "custom", "cpu": "1000", "memory": "1024", "rootfs_size": "0", "vcpu": 1, "disk":
10,"network": [{"interface-name": "eth3", "network-name": "mgmt-bridge100"}, {"interface-name": "eth4", "network-type": "vlan", "mode": "static", "ipv4": {"ip": "10.2.0.100", Application Hosting Sample Configuration for ThousandEyes Enterprise Agent Programmability Configuration Guide, Cisco IOS XE 17.16.x 453