Some container images do not have tags causing errors, such as development containers
Steps to reproduce:
Example: Replace the following lines and remove this
go to: Docker → Containers settings tab
Actual behavior:
Runtime error
Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/model/cbi/dockerman/containers.lua:80: attempt to index field '?' (a nil value)
In error(), file [C]
called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23)
called from function ((tail call))
In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 148, byte 45:
called from function [arrow function] (/usr/share/ucode/luci/dispatcher.uc:794:4)
called from function render ([C])
called from function render_action (/usr/share/ucode/luci/dispatcher.uc:768:24)
called from function run_action (/usr/share/ucode/luci/dispatcher.uc:795:4)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:1003:48)
called from anonymous function (/www/cgi-bin/luci:39:13)
` return lcall.call(modname, method, ...args);`
Near here ----------------------------------------^
Some container images do not have tags causing errors, such as development containers
Steps to reproduce:
Example: Replace the following lines and remove this
Actual behavior:
the error code
https://github.com/openwrt/luci/blob/b22ab2321f65d99b96ad7d4c4463ea8d70aec580/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/containers.lua#L80-L80
Expected behavior:
It looks like someone has already fixed the problem in the fork library.
https://github.com/coolsnowwolf/luci/pull/270/commits/d20cb98713321780ffededf240ea60ba605d4043#diff-e0640041aa036c0b678250bcc54848c9ba651785e2ebbf6b9432ad45520dc24bL89
https://github.com/coolsnowwolf/luci/blob/aed573a82aef60bc2bf1c74a5488ee78bc56962c/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/containers.lua#L88-L88
Additional Information:
cat /etc/openwrt_release
docker info
docker container ls --format json