diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-05 01:08:23 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-05 01:08:23 +0300 |
commit | 27771e6654ab920415ce5b3678dadc5805b4f5a8 (patch) | |
tree | 865f78a19f3a313e80c241a9b80515336f2aa1d9 | |
parent | 15f294f270b2f0b65a83c16f1f25738b9b03fdc8 (diff) | |
download | simple-container-27771e6654ab920415ce5b3678dadc5805b4f5a8.tar.xz simple-container-27771e6654ab920415ce5b3678dadc5805b4f5a8.zip |
Added example debugger output
-rw-r--r-- | README.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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) |