0.0.0 • Published 6 years ago
simple-docker v0.0.0
simple-docker
Node wrapper for running docker commands:
import {psA, start} from 'simple-docker';
(async function () {
const detail: DockerContainerDetail = await psA();
if (detail.exists('my-container') && !detail.isRunning('my-container')) {
const running = await start('my-container');
console.log(`Container is ${ running ? 'now' : 'still not' } running`);
}
})()
0.0.0
6 years ago