Small Syntax changes for containers API
This commit is contained in:
parent
8426640271
commit
fff04d019a
1 changed files with 2 additions and 6 deletions
|
@ -1,11 +1,7 @@
|
|||
import fsPromises from 'fs/promises'
|
||||
import path from 'path'
|
||||
import { Service, ServiceStatus } from '../../interfaces/LinkTypes';
|
||||
import Docker from 'dockerode'
|
||||
|
||||
export default async function ServicesAPI(req: any, res: any) {
|
||||
export default async function ContainersAPI(req: any, res: any) {
|
||||
try {
|
||||
var Docker = require('dockerode');
|
||||
|
||||
const options = {
|
||||
socketPath: '/var/run/docker.sock',
|
||||
path: '/v1.41/containers/json'
|
||||
|
|
Loading…
Reference in a new issue