From 27771e6654ab920415ce5b3678dadc5805b4f5a8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Oct 2017 02:08:23 +0400 Subject: Added example debugger output --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 38eeab9..d2de07e 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ import Container from 'simple-container'; var container = new Container(); /* Create the container */ -container.create('postgres:alpine'); +container.create('hello-world:latest'); /* Start the container */ container.start(); @@ -89,6 +89,19 @@ Details in ## Debugging Use the `DEBUG` variable with the `container` option. +Result of output: +```bash +$ DEBUG="container" node ./example.js + container { status: 'Pulling from library/postgres', id: 'alpine' } +0ms + container { status: 'Already exists', + container progressDetail: {}, + container id: '019300c8a437' } +0ms + container { status: 'Pulling fs layer', + container progressDetail: {}, + container id: '885fa9f8b950' } +0ms +... +``` + ## License [![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/eslint/eslint) -- cgit v1.2.3