Skip to content
Snippets Groups Projects
Commit 35960867 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix container inspection

parent 3c7e57ac
No related branches found
Tags v1.8.5
No related merge requests found
Pipeline #397425 passed
......@@ -3,7 +3,12 @@
function readContainerConfig() {
try {
$id = getenv('COMPOSE_PROJECT_NAME') . '_l3d';
$output = [];
exec('basename "$(cat /proc/1/cpuset)"', $output);
$id = reset($output);
if ($id === '/') {
$id = getenv('COMPOSE_PROJECT_NAME') . '_l3d';
}
$output = [];
exec('docker container inspect ' . $id, $output);
return json_decode(implode('', $output), TRUE)[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment