mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 18:15:58 +00:00
refactor(docker): remove debug statement and enhance hostname handling in Docker run conversion
This commit is contained in:
1 parent
bce8bb1f2d
commit
8520beff51
2 files changed
+4
-6
No files matched your search
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
|
||||
test('ConvertCapAdd', function () {
|
||||
$input = '--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add SYS_ADMIN';
|
||||
$input = '--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add SYS_ADMIN --hostname=test';
|
||||
$output = convertDockerRunToCompose($input);
|
||||
expect($output)->toBe([
|
||||
'cap_add' => ['NET_ADMIN', 'NET_RAW', 'SYS_ADMIN'],
|
||||
'hostname' => 'test',
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user