deployment-engine/src/main.ts

11 lines
378 B
TypeScript

import { attachLogs, createContainer, listContainers, pullImage } from './docker.js';
// const id = await createContainer('hello-world');
// const stream = await attachLogs(id)
// stream.pipe(process.stdout);
// await new Promise(res => {
// stream.on('close', () => {
// res(void 0);
// })
// })
console.log((await listContainers()).map(container => container.Names));