Hi,
I just discovered that if you insert a Containter name with spaces in it, the interface throws an error:
Code
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; docker create --name=Unifi Controller "debian" /bin/true' with exit code '1':
Details:
Code
Error #0:
exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; docker create --name=Unifi Controller "debian" /bin/true' with exit code '1': ' in /usr/share/php/openmediavault/system/process.inc:175
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/docker.inc(856): OMV\System\Process->execute()
#1 [internal function]: OMVRpcServiceDocker->createContainer(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('createContainer', Array, Array)
#4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'createContainer', Array, Array, 1)
#5 {main}
This is caused by the fact that spaces are not supported in the container's name but there's no textbox validation what warns about it and the error thrown by the interface doesn't provide any hint about it.