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 Docker from 'dockerode'
|
||||||
import path from 'path'
|
|
||||||
import { Service, ServiceStatus } from '../../interfaces/LinkTypes';
|
|
||||||
|
|
||||||
export default async function ServicesAPI(req: any, res: any) {
|
export default async function ContainersAPI(req: any, res: any) {
|
||||||
try {
|
try {
|
||||||
var Docker = require('dockerode');
|
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
socketPath: '/var/run/docker.sock',
|
socketPath: '/var/run/docker.sock',
|
||||||
path: '/v1.41/containers/json'
|
path: '/v1.41/containers/json'
|
||||||
|
|
Loading…
Reference in a new issue