Docker: added shell/bash selection for console

This commit is contained in:
bergware
2018-05-29 14:03:27 +02:00
parent 17088573e7
commit 14e69b877e
4 changed files with 17 additions and 5 deletions
@@ -270,6 +270,7 @@ class DockerTemplates {
$port = &$ct['Ports'][0];
$ip = ($ct['NetworkMode']=='host'||$port['NAT'] ? $host : $port['IP']);
$tmp['url'] = strpos($tmp['url'],$ip)!==false ? $tmp['url'] : $this->getControlURL($ct, $ip);
$tmp['shell'] = $tmp['shell'] ?? $this->getTemplateValue($image, 'Shell');
}
$tmp['registry'] = $tmp['registry'] ?? $this->getTemplateValue($image, 'Registry');
$tmp['Support'] = $tmp['Support'] ?? $this->getTemplateValue($image, 'Support');