feat(docker): support --no-cache flag

This commit is contained in:
William Harrison 2024-11-27 14:08:44 +11:00 committed by GitHub
parent bdf411a1fc
commit ecb51d1d90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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