mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🐛 Fix docker not getting all containers
Turned off containers will not be shown
This commit is contained in:
@@ -5,7 +5,7 @@ import Docker from 'dockerode';
|
||||
async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
try {
|
||||
const docker = new Docker();
|
||||
const containers = await docker.listContainers();
|
||||
const containers = await docker.listContainers({ all: true });
|
||||
res.status(200).json(containers);
|
||||
} catch (err) {
|
||||
res.status(500).json({ err });
|
||||
|
||||
Reference in New Issue
Block a user