Skip to content

Instantly share code, notes, and snippets.

@andreybleme
Created May 28, 2019 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreybleme/f383950338bda9a399e99839735cb39a to your computer and use it in GitHub Desktop.
Save andreybleme/f383950338bda9a399e99839735cb39a to your computer and use it in GitHub Desktop.
andreybleme.com | Integration tests with Docker
const {Docker} = require('node-docker-api');
const docker = new Docker({ socketPath: '/var/run/docker.sock' });
docker.container.create({
Image: 'postgres',
name: 'test'
})
.then(container => container.start())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment