09-20-2020 11:46 PM - edited 09-20-2020 11:50 PM
Hi
Is IOX 100% Docker compatible?
I'm trying to run phpmyadmin as a docker from my Catalyst 9300 (running v17.03.01).
I pull the image from here: https://hub.docker.com/r/phpmyadmin/phpmyadmin
Saving it, and uploading it to usbflash1:
After running
app-hosting install appid phpmyadmin package usbflash1:phpmyadmin.tar
it does not show up when i run the command:
show app-hosting list
But I can still activate and start it. But it never shows up in any list.. in CLI. I cannot uninstall it either, since the switch claim the appid does not exist. BUT in the switch Web UI it does show up.. strange.
I said I could start it up, but only without arguments.
If I add arguments like this:
app-resource docker
run-opts 1 "-e PMA_HOST=1.1.1.1-p 8080:80 phpmyadmin"
it does not work.
I'm not able to start it, and the CLI does not give me an error.
The Web GUI does, however, and it looks like this:
2020-09-21 08:30:08,495 [pdservices:ERROR] [Thread-11] [lifecycle_hooks.py:162 - _call_hook_script()] Error returned by post-stop hook /opt/cisco/caf/scripts/guestshell_setup.sh: returncode: 127, message: /bin/sh: 5A52880781F755608BF815FC910DEB46F53EA312: command not found
What can be causing this?
The first docker app I tried (IPerf) worked like a charm. This one, not so much.
Here is the full appid settings from the switch:
app-hosting appid phpmyadmin
app-vnic AppGigabitEthernet trunk
vlan 2 guest-interface 1
guest-ipaddress 10.2.100.211 netmask 255.255.255.0
app-default-gateway 10.2.100.1 guest-interface 1
app-resource docker
run-opts 1 "-e PMA_HOST=1.1.1.1 -p 8080:80 phpmyadmin:latest"
Thanks.
08-10-2022 08:13 AM
Hello,
A Distinguished Engineer here at Cisco has created a GitHub Repo explaining How to Application Host [create a Docker container] Syslog-NG in a Cisco Catalyst 9000 series switch.
His appid settings for your consideration:
app-hosting appid syslogng
app-vnic management guest-interface 0
guest-ipaddress 10.10.20.101 netmask 255.255.255.0
app-default-gateway 10.10.20.254 guest-interface 0
app-resource docker
run-opts 1 "-v $(APP_DATA):/data"
run-opts 3 "--restart=unless-stopped -p 514:514/udp -p 601:601/tcp"
app-resource profile custom
vcpu 1
cpu 3700
memory 1792
persist-disk 200
See the repo here ---> https://github.com/jasoncdavis/AppHosting-SyslogNG
05-17-2023 11:15 PM - edited 10-11-2023 02:43 AM
The error message you provided suggests that there is an issue with a post-stop hook script related to Cisco's Guest Shell setup, rather than directly related to Localhost phpMyAdmin or Docker.
The error "command not found" typically indicates that a command or script referenced in the hook script cannot be found or executed. In this case, it appears that the command or script with the name "5A52880781F755608BF815FC910DEB46F53EA312" is not found.
To resolve this issue, you should investigate the post-stop hook script /opt/cisco/caf/scripts/guestshell_setup.sh and check if it contains any references to the missing command. Ensure that the necessary dependencies are installed and that the command or script exists in the expected location.
If you're not familiar with the script or its purpose, you may need to consult the documentation or seek support from Cisco or the script's provider to troubleshoot and resolve the specific error related to the Guest Shell setup.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide