cisco — Configuring a Static IP Address in a Container

When a run time option is changed, stop, deactivate, activate, and start the application for the new run time options to take effect. SUMMARY STEPS 1. enable 2. configure terminal 3. app-hosting appid application-name 4. app-resource docker 5. run-opts options 6. end DETAILED STEPS Procedure Configuring a Static IP Address in a Container When configuring a static IP address in a container, the following guidelines apply: Application Hosting Configuring a Static IP Address in a Container Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example:

Device# configure terminal Enters global configuration mode. Step 3 app-hosting appid application-name Example: Device(config)# app-hosting appid iox app _ Configures an application and enters application-hosting configuration mode. Step 4 app-resource docker Example: Device(config-app-hosting)# app-resource docker Enters application-hosting docker-configuration mode to specify application resource updates. Step 5 run-opts options Example: Device(config-app-hosting-docker)# run-opts 1 "-v $(APP DATA):/data" _ Specifies the Docker run time options. Step 6 end Example:

Device(config-app-hosting-docker)# end Exits application-hosting docker-configuration mode and returns to privileged EXEC mode. Application Hosting 21