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

Use name instead of id to inspect container

parent b87eccf0
No related branches found
No related tags found
No related merge requests found
Pipeline #397405 passed
......@@ -3,9 +3,7 @@
function readContainerConfig() {
try {
$output = [];
exec('basename "$(cat /proc/1/cpuset)"', $output);
$id = reset($output);
$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.
Please register or to comment