Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: isContainerdEnabled checks driver status field instead of driver #19

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ui/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ export function App() {


async function isContainerdEnabled() {
const result = await ddClient.docker.cli.exec("info", [
"--format",
'"{{ json . }}"',
const result = await ddClient.docker.cli.exec('info', [
'-f',
'"{{ .DriverStatus }}"',
]);
const info = JSON.parse(result.stdout);
return info.Driver === "overlayfs";
const output = result.stdout;
return output.includes('driver-type io.containerd.snapshotter.v1');
}


Expand Down Expand Up @@ -370,7 +370,7 @@ export function App() {
<Stack direction="column" spacing={2} sx={{ alignSelf: 'inherit', alignItems: 'center' }}>
{vulnState !== VULN_UNLOADED &&
<Typography >
<Box sx={{ fontWeight: 'bold'}}>Vulnerabilities:
<Box sx={{ fontWeight: 'bold' }}>Vulnerabilities:
</Box>
</Typography>
}
Expand Down