feat: add static ipv4 ipv6 support

This commit is contained in:
Andras Bacsai
2024-02-25 23:13:27 +01:00
parent 5e980c5fe0
commit c7da43f50d
5 changed files with 55 additions and 19 deletions

View File

@@ -423,7 +423,7 @@ function convert_docker_run_to_compose(?string $custom_docker_run_options = null
'--security-opt',
'--sysctl',
'--ulimit',
'--device'
'--device',
]);
$mapping = collect([
'--cap-add' => 'cap_add',
@@ -435,6 +435,7 @@ function convert_docker_run_to_compose(?string $custom_docker_run_options = null
'--init' => 'init',
'--ulimit' => 'ulimits',
'--privileged' => 'privileged',
'--ip' => 'ip',
]);
foreach ($matches as $match) {
$option = $match[1];