add hostname

This commit is contained in:
sebi
2025-04-04 18:38:54 +01:00
parent 3b68eaf05d
commit 4f5df53f1f
2 changed files with 4 additions and 2 deletions

View File

@@ -702,6 +702,7 @@ function convertDockerRunToCompose(?string $custom_docker_run_options = null)
'--ulimit',
'--device',
'--shm-size',
'--hostname',
]);
$mapping = collect([
'--cap-add' => 'cap_add',
@@ -715,6 +716,7 @@ function convertDockerRunToCompose(?string $custom_docker_run_options = null)
'--ip' => 'ip',
'--shm-size' => 'shm_size',
'--gpus' => 'gpus',
'--hostname' => 'hostname'
]);
foreach ($matches as $match) {
$option = $match[1];