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