simple-docker
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

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`);
   }

})()


/simple-docker/

    Package Sidebar

    Install

    npm i simple-docker

    Weekly Downloads

    2

    Version

    0.0.0

    License

    MIT

    Unpacked Size

    17 kB

    Total Files

    26

    Last publish

    Collaborators

    • steveukx